Change server-host default of 127.0.0.1 to !4

This way the server works in LAN settings by default.
This commit is contained in:
steve-chavez
2019-05-19 13:18:03 -05:00
committed by Steve Chávez
parent 37de12d376
commit 181b608c04
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -22,6 +22,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- #1273, Fix RPC ignoring unknown arguments by default - @steve-chavez
- #1257, Fix incorrect status when a PATCH request doesn't find rows to change - @qu4tro
### Changed
- #1288, Change server-host default of 127.0.0.1 to !4
### Removed
- #1288, Removed support for schema reloading with SIGHUP, SIGUSR1 should be used instead - @steve-chavez
+2 -2
View File
@@ -137,7 +137,7 @@ readOptions = do
<*> C.key "db-anon-role"
<*> (mfilter (/= "") <$> C.key "server-proxy-uri")
<*> C.key "db-schema"
<*> (fromMaybe "127.0.0.1" . mfilter (/= "") <$> 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")
@@ -218,7 +218,7 @@ readOptions = do
|db-pool = 10
|db-pool-timeout = 10
|
|server-host = "127.0.0.1"
|server-host = "!4"
|server-port = 3000
|
|## base url for swagger output