Luzifer / nginx-sso

SSO authentication provider for the auth_request nginx module
Apache License 2.0
282 stars 41 forks source link

Add support for templating / environment variables in config file #78

Closed glenn-m closed 1 year ago

glenn-m commented 1 year ago

Is it possible to configure secrets via env vars, instead of leaving them in the config file?

It looks like authentication_key is the only one with an env var exposed?

Luzifer commented 1 year ago

Not at the moment. The only available environment variables are for the flags (CONFIG, COOKIE_AUTHENTICATION_KEY, FRONTEND_DIR). The config file currently does not support templating and therefore does not support loading env-vars.

Though that's a good addition so I'll keep this open as a feature request to support templating in the configuration YAML to read environment variables / ...

glenn-m commented 1 year ago

@Luzifer Thanks for implementing this, I appreciate it!