Treat blank host config param as missing (#948)

Docker may pass in an empty string, in which case use the default value
This commit is contained in:
Joe Nelson
2017-08-23 19:41:45 -05:00
committed by GitHub
parent 9af8db0e76
commit 9b5ce3a8af
+1 -1
View File
@@ -108,7 +108,7 @@ readOptions = do
<*> C.key "db-anon-role"
<*> C.key "server-proxy-uri"
<*> C.key "db-schema"
<*> (fromMaybe "*4" <$> C.key "server-host")
<*> (fromMaybe "*4" . mfilter (/= "") <$> C.key "server-host")
<*> (fromMaybe 3000 . join . fmap coerceInt <$> C.key "server-port")
<*> (fmap encodeUtf8 . mfilter (/= "") <$> C.key "jwt-secret")
<*> (fromMaybe False . join . fmap coerceBool <$> C.key "secret-is-base64")