added nix support

This commit is contained in:
stuce-bot 2025-06-09 22:06:51 +02:00
parent cc77fee048
commit cb9ae44ec4
6 changed files with 112 additions and 3 deletions

View file

@ -80,9 +80,9 @@ instance Yesod App where
-- Store session data on the client in encrypted cookies,
-- default session idle timeout is 120 minutes
makeSessionBackend :: App -> IO (Maybe SessionBackend)
makeSessionBackend _ = Just <$> defaultClientSessionBackend
makeSessionBackend app = Just <$> defaultClientSessionBackend
120 -- timeout in minutes
"config/client_session_key.aes"
(appSessionKey $ appSettings app)
-- Yesod Middleware allows you to run code before and after each handler function.
-- The defaultYesodMiddleware adds the response header "Vary: Accept, Accept-Language" and performs authorization checks.