Merge branch 'master' of gitlab.cip.ifi.lmu.de:jost/UniWorX
This commit is contained in:
commit
24eec86bd6
@ -27,6 +27,7 @@ notification-rate-limit: 3600
|
|||||||
notification-collate-delay: 300
|
notification-collate-delay: 300
|
||||||
notification-expiration: 259201
|
notification-expiration: 259201
|
||||||
session-timeout: 7200
|
session-timeout: 7200
|
||||||
|
maximum-content-length: 52428800
|
||||||
|
|
||||||
log-settings:
|
log-settings:
|
||||||
detailed: "_env:DETAILED_LOGGING:false"
|
detailed: "_env:DETAILED_LOGGING:false"
|
||||||
|
|||||||
@ -753,7 +753,7 @@ instance Yesod UniWorX where
|
|||||||
(getCachedDate, _) <- clientSessionDateCacher appSessionTimeout
|
(getCachedDate, _) <- clientSessionDateCacher appSessionTimeout
|
||||||
return . Just $ clientSessionBackend appSessionKey getCachedDate
|
return . Just $ clientSessionBackend appSessionKey getCachedDate
|
||||||
|
|
||||||
maximumContentLength _ _ = Just $ 50 * 2^20
|
maximumContentLength UniWorX{appSettings=AppSettings{appMaximumContentLength}} _ = appMaximumContentLength
|
||||||
|
|
||||||
-- Yesod Middleware allows you to run code before and after each handler function.
|
-- 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.
|
-- The defaultYesodMiddleware adds the response header "Vary: Accept, Accept-Language" and performs authorization checks.
|
||||||
|
|||||||
@ -99,6 +99,7 @@ data AppSettings = AppSettings
|
|||||||
, appNotificationCollateDelay :: NominalDiffTime
|
, appNotificationCollateDelay :: NominalDiffTime
|
||||||
, appNotificationExpiration :: NominalDiffTime
|
, appNotificationExpiration :: NominalDiffTime
|
||||||
, appSessionTimeout :: NominalDiffTime
|
, appSessionTimeout :: NominalDiffTime
|
||||||
|
, appMaximumContentLength :: Maybe Word64
|
||||||
|
|
||||||
, appInitialLogSettings :: LogSettings
|
, appInitialLogSettings :: LogSettings
|
||||||
|
|
||||||
@ -354,6 +355,8 @@ instance FromJSON AppSettings where
|
|||||||
|
|
||||||
appSessionTimeout <- o .: "session-timeout"
|
appSessionTimeout <- o .: "session-timeout"
|
||||||
|
|
||||||
|
appMaximumContentLength <- o .: "maximum-content-length"
|
||||||
|
|
||||||
appReloadTemplates <- o .:? "reload-templates" .!= defaultDev
|
appReloadTemplates <- o .:? "reload-templates" .!= defaultDev
|
||||||
appMutableStatic <- o .:? "mutable-static" .!= defaultDev
|
appMutableStatic <- o .:? "mutable-static" .!= defaultDev
|
||||||
appSkipCombining <- o .:? "skip-combining" .!= defaultDev
|
appSkipCombining <- o .:? "skip-combining" .!= defaultDev
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user