git.iko.soy/typeable/oauth2-proxy
on master help sign in
doc: explain value comma separation for plural environment variables (#2732)
e12ae03Stephan Eicher
docs/docs/configuration/overview.md+9−2
@@ -279,8 +279,15 @@ environment variable should be plural (trailing `S`).
279This is particularly useful for storing secrets outside a configuration file
279This is particularly useful for storing secrets outside a configuration file
280or the command line.
280or the command line.
281
281
282−For example, the `--cookie-secret` flag becomes `OAUTH2_PROXY_COOKIE_SECRET`,
282+For example, the `--cookie-secret` flag becomes `OAUTH2_PROXY_COOKIE_SECRET`.
283+If a flag has the type `string | list` like the `--email-domain` flag it is
283−and the `--email-domain` flag becomes `OAUTH2_PROXY_EMAIL_DOMAINS`.
284+available as an environment variable in plural form e.g. `OAUTH2_PROXY_EMAIL_DOMAINS`
285+
286+Values for type `string | list` usually have a plural environment variable name
287+and need to be seperated by `,` e.g.
288+`OAUTH2_PROXY_SKIP_AUTH_ROUTES="GET=^/api/status,POST=^/api/saved_objects/_import"`
289+
290+Please check the type for each [config option](#config-options) first.
284
291
285## Logging Configuration
292## Logging Configuration
286
293
docs/versioned_docs/version-7.6.x/configuration/overview.md+9−2
@@ -279,8 +279,15 @@ environment variable should be plural (trailing `S`).
279This is particularly useful for storing secrets outside a configuration file
279This is particularly useful for storing secrets outside a configuration file
280or the command line.
280or the command line.
281
281
282−For example, the `--cookie-secret` flag becomes `OAUTH2_PROXY_COOKIE_SECRET`,
282+For example, the `--cookie-secret` flag becomes `OAUTH2_PROXY_COOKIE_SECRET`.
283+If a flag has the type `string | list` like the `--email-domain` flag it is
283−and the `--email-domain` flag becomes `OAUTH2_PROXY_EMAIL_DOMAINS`.
284+available as an environment variable in plural form e.g. `OAUTH2_PROXY_EMAIL_DOMAINS`
285+
286+Values for type `string | list` usually have a plural environment variable name
287+and need to be seperated by `,` e.g.
288+`OAUTH2_PROXY_SKIP_AUTH_ROUTES="GET=^/api/status,POST=^/api/saved_objects/_import"`
289+
290+Please check the type for each [config option](#config-options) first.
284
291
285## Logging Configuration
292## Logging Configuration
286
293