Change default server-unix-socket-mode 755 -> 660 (#1423)

This commit is contained in:
Dmitry Wagin
2019-12-16 08:37:00 -05:00
committed by Steve Chavez
parent 7f365bf60b
commit e12c1319b6
3 changed files with 6 additions and 5 deletions
+3 -3
View File
@@ -177,7 +177,7 @@ readOptions = do
parseSocketFileMode :: C.Key -> C.Parser C.Config (Either Text FileMode)
parseSocketFileMode k =
C.optional k C.string >>= \case
Nothing -> pure $ Right 493 -- return default 755 mode if no value was provided
Nothing -> pure $ Right 432 -- return default 660 mode if no value was provided
Just fileModeText ->
case (readOct . unpack) fileModeText of
[] ->
@@ -267,8 +267,8 @@ readOptions = do
|## if specified it takes precedence over server-port
|# server-unix-socket = "/tmp/pgrst.sock"
|## unix socket file mode
|## when none is provided, 755 is applied by default
|# server-unix-socket-mode = "755"
|## when none is provided, 660 is applied by default
|# server-unix-socket-mode = "660"
|
|## base url for swagger output
|# server-proxy-uri = ""