Allows configuring postgrest from the db by setting config parameters on the connection role. For example: ALTER ROLE postgrest_test_authenticator SET pgrst.jwt-secret = "REALLYREALLYREALLYREALLYVERYSAFE" The above wWill set the `jwt-secret` config option accordingly. SUPERUSER privileges are required for ALTERing role settings, so this might not work on some cloud-managed databases. This feature is enabled by default, for disabling it you can add the following to the config file: db-load-guc-config = false
26 lines
574 B
Plaintext
26 lines
574 B
Plaintext
db-anon-role = "required"
|
|
db-channel = "pgrst"
|
|
db-channel-enabled = true
|
|
db-extra-search-path = "public"
|
|
db-max-rows = ""
|
|
db-pool = 10
|
|
db-pool-timeout = 10
|
|
db-pre-request = ""
|
|
db-prepared-statements = false
|
|
db-root-spec = ""
|
|
db-schemas = "required"
|
|
db-load-guc-config = "false"
|
|
db-tx-end = "commit"
|
|
db-uri = "required"
|
|
jwt-aud = ""
|
|
jwt-role-claim-key = ".\"role\""
|
|
jwt-secret = ""
|
|
jwt-secret-is-base64 = true
|
|
log-level = "error"
|
|
openapi-server-proxy-uri = ""
|
|
raw-media-types = ""
|
|
server-host = "!4"
|
|
server-port = 3000
|
|
server-unix-socket = ""
|
|
server-unix-socket-mode = "660"
|