diff options
author | stuebinm | 2024-05-15 01:04:32 +0200 |
---|---|---|
committer | stuebinm | 2024-05-15 01:09:13 +0200 |
commit | 59670bdb6f0a3bba898274eadf47707e93bea195 (patch) | |
tree | b0f8c4e7a402a587366b0fdf57c78d8f27e030a4 /lib/Config.hs | |
parent | 1e04f049b101d8250b8964dd0b465e703d03a4c2 (diff) |
config: add a debug mode option
this is meant to be false by default, and otherwise relaxes requirements
on e.g. incoming pings, which are inconvenient when testing by hand.
Diffstat (limited to 'lib/Config.hs')
-rw-r--r-- | lib/Config.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Config.hs b/lib/Config.hs index 94fdd28..4aa62fc 100644 --- a/lib/Config.hs +++ b/lib/Config.hs @@ -24,6 +24,7 @@ data ServerConfig = ServerConfig , serverConfigGtfs :: FilePath , serverConfigAssets :: FilePath , serverConfigZoneinfoPath :: FilePath + , serverConfigDebugMode :: Bool , serverConfigLogin :: UffdConfig , serverConfigLogging :: LoggingConfig } deriving (Generic) @@ -43,6 +44,7 @@ instance DefaultConfig ServerConfig where , serverConfigGtfs = "./gtfs.zip" , serverConfigAssets = "./assets" , serverConfigZoneinfoPath = "/etc/zoneinfo/" + , serverConfigDebugMode = False , serverConfigLogin = configDef , serverConfigLogging = configDef } |