Skip to content
Discussion options

You must be logged in to vote

I'm not completely sure but it may work using custom environment variables in the configuration settings https://postgrest.org/en/v9.0/configuration.html#app-settings. You'll need to set the variables there before starting PostgREST, e.g. app.settings.ssl_cert_x=$(SSL_CERT_X).

If the env variables can't be accessed system wide, then another option would be to somehow set those variables in a header and then access them using GUC names: https://postgrest.org/en/latest/api.html?highlight=guc#accessing-request-headers-cookies-and-jwt-claims. I don't know how feasible that option is, though.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Markus-
Comment options

Answer selected by Markus-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants