mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-25 18:31:55 +01:00
Better development setting propagation
This commit is contained in:
parent
e607494a08
commit
950cb7ef6d
16
Settings.hs
16
Settings.hs
@ -68,13 +68,15 @@ instance FromJSON AppSettings where
|
|||||||
appIpFromHeader <- o .: "ip-from-header"
|
appIpFromHeader <- o .: "ip-from-header"
|
||||||
appPostgresString <- o .: "postgres-string"
|
appPostgresString <- o .: "postgres-string"
|
||||||
|
|
||||||
appDetailedRequestLogging <- o .:? "detailed-logging" .!= defaultDev
|
dev <- o .: "development" .!= defaultDev
|
||||||
appShouldLogAll <- o .:? "should-log-all" .!= defaultDev
|
|
||||||
appReloadTemplates <- o .:? "reload-templates" .!= defaultDev
|
appDetailedRequestLogging <- o .:? "detailed-logging" .!= dev
|
||||||
appMutableStatic <- o .:? "mutable-static" .!= defaultDev
|
appShouldLogAll <- o .:? "should-log-all" .!= dev
|
||||||
appSkipCombining <- o .:? "skip-combining" .!= defaultDev
|
appReloadTemplates <- o .:? "reload-templates" .!= dev
|
||||||
appForceSsl <- o .:? "force-ssl" .!= not defaultDev
|
appMutableStatic <- o .:? "mutable-static" .!= dev
|
||||||
appDevDownload <- o .:? "dev-download" .!= defaultDev
|
appSkipCombining <- o .:? "skip-combining" .!= dev
|
||||||
|
appForceSsl <- o .:? "force-ssl" .!= not dev
|
||||||
|
appDevDownload <- o .:? "dev-download" .!= dev
|
||||||
|
|
||||||
return AppSettings {..}
|
return AppSettings {..}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user