You are browsing documentation for an older version. See the latest documentation here.

Kong Gateway Environment Variables

Environment variables

Kong Gateway can be fully configured with environment variables.

All parameters defined in kong.conf can be managed via environment variables. When loading properties from kong.conf, Kong Gateway checks existing environment variables first.

To override a setting using an environment variable, declare an environment variable with the name of the setting, prefixed with KONG_.

For example, to override the log_level parameter:

  1. log_level = debug # in kong.conf

set KONG_LOG_LEVEL as an environment variable:

  1. export KONG_LOG_LEVEL=error

More information