Fixes https://github.com/PostgREST/postgrest/issues/1512 Helps on environments where you can't send unix signals(Windows, managed containers). Also provides better UX for schema reloads - NOTIFY can be sent from pg clients(psql, pgadmin). `NOTIFY pgrst` - with no payload - should be done to reload the schema cache. Notifications with a payload will be ignored. The channel can be enabled with `db-channel-enabled`(false by default) and its name can be configured with `db-channel`. The LISTEN thread uses a dedicated pg connection. This connection is recovered if it fails. A debounce of 1ms is done in case too many NOTIFYs arrive.
31 lines
870 B
Plaintext
31 lines
870 B
Plaintext
# See https://postgrest.org/en/stable/configuration.html#configuration
|
|
|
|
# Required settings
|
|
|
|
db-uri = "$(PGRST_DB_URI)"
|
|
db-schema = "$(PGRST_DB_SCHEMA)"
|
|
db-anon-role = "$(PGRST_DB_ANON_ROLE)"
|
|
|
|
# Optional settings
|
|
|
|
db-pool = "$(PGRST_DB_POOL)"
|
|
db-pool-timeout = "$(PGRST_DB_POOL_TIMEOUT)"
|
|
db-extra-search-path = "$(PGRST_DB_EXTRA_SEARCH_PATH)"
|
|
|
|
db-channel = "$(PGRST_DB_CHANNEL)"
|
|
db-channel-enabled = "$(PGRST_DB_CHANNEL_ENABLED)"
|
|
|
|
server-host = "$(PGRST_SERVER_HOST)"
|
|
server-port = "$(PGRST_SERVER_PORT)"
|
|
|
|
openapi-server-proxy-uri = "$(PGRST_OPENAPI_SERVER_PROXY_URI)"
|
|
jwt-secret = "$(PGRST_JWT_SECRET)"
|
|
secret-is-base64 = "$(PGRST_SECRET_IS_BASE64)"
|
|
jwt-aud = "$(PGRST_JWT_AUD)"
|
|
role-claim-key = "$(PGRST_ROLE_CLAIM_KEY)"
|
|
|
|
max-rows = "$(PGRST_MAX_ROWS)"
|
|
pre-request = "$(PGRST_PRE_REQUEST)"
|
|
root-spec = "$(PGRST_ROOT_SPEC)"
|
|
raw-media-types = "$(PGRST_RAW_MEDIA_TYPES)"
|