added nix support
This commit is contained in:
parent
cc77fee048
commit
cb9ae44ec4
6 changed files with 112 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue