Change default server-unix-socket-mode 755 -> 660 (#1423)
This commit is contained in:
committed by
Steve Chavez
parent
7f365bf60b
commit
e12c1319b6
@@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
- #1385, bulk RPC call now should be done by specifying a `Prefer: params=multiple-objects` header - @steve-chavez
|
- #1385, bulk RPC call now should be done by specifying a `Prefer: params=multiple-objects` header - @steve-chavez
|
||||||
- #1401, resource embedding now outputs an error when multiple relationships between two tables are found - @steve-chavez
|
- #1401, resource embedding now outputs an error when multiple relationships between two tables are found - @steve-chavez
|
||||||
|
- #1423, default Unix Socket file mode from 755 to 660 - @dwagin
|
||||||
|
|
||||||
## [6.0.2] - 2019-08-22
|
## [6.0.2] - 2019-08-22
|
||||||
|
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ readOptions = do
|
|||||||
parseSocketFileMode :: C.Key -> C.Parser C.Config (Either Text FileMode)
|
parseSocketFileMode :: C.Key -> C.Parser C.Config (Either Text FileMode)
|
||||||
parseSocketFileMode k =
|
parseSocketFileMode k =
|
||||||
C.optional k C.string >>= \case
|
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 ->
|
Just fileModeText ->
|
||||||
case (readOct . unpack) fileModeText of
|
case (readOct . unpack) fileModeText of
|
||||||
[] ->
|
[] ->
|
||||||
@@ -267,8 +267,8 @@ readOptions = do
|
|||||||
|## if specified it takes precedence over server-port
|
|## if specified it takes precedence over server-port
|
||||||
|# server-unix-socket = "/tmp/pgrst.sock"
|
|# server-unix-socket = "/tmp/pgrst.sock"
|
||||||
|## unix socket file mode
|
|## unix socket file mode
|
||||||
|## when none is provided, 755 is applied by default
|
|## when none is provided, 660 is applied by default
|
||||||
|# server-unix-socket-mode = "755"
|
|# server-unix-socket-mode = "660"
|
||||||
|
|
|
|
||||||
|## base url for swagger output
|
|## base url for swagger output
|
||||||
|# server-proxy-uri = ""
|
|# server-proxy-uri = ""
|
||||||
|
|||||||
+2
-2
@@ -66,8 +66,8 @@ _baseCfg = -- Connection Settings
|
|||||||
AppConfig mempty "postgrest_test_anonymous" Nothing "test" "localhost" 3000
|
AppConfig mempty "postgrest_test_anonymous" Nothing "test" "localhost" 3000
|
||||||
-- No user configured Unix Socket
|
-- No user configured Unix Socket
|
||||||
Nothing
|
Nothing
|
||||||
-- No user configured Unix Socket file mode (defaults to 755)
|
-- No user configured Unix Socket file mode (defaults to 660)
|
||||||
(Right 493)
|
(Right 432)
|
||||||
-- Jwt settings
|
-- Jwt settings
|
||||||
(Just $ encodeUtf8 "reallyreallyreallyreallyverysafe") False Nothing
|
(Just $ encodeUtf8 "reallyreallyreallyreallyverysafe") False Nothing
|
||||||
-- Connection Modifiers
|
-- Connection Modifiers
|
||||||
|
|||||||
Reference in New Issue
Block a user