Change default server-unix-socket-mode 755 -> 660 (#1423)
This commit is contained in:
committed by
Steve Chavez
parent
7f365bf60b
commit
e12c1319b6
@@ -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 = ""
|
||||
|
||||
Reference in New Issue
Block a user