Skip to Content

Environment Variables

Available Environment Variables

The following environment variables are accepted by the router, and they override other configurations that can be set in the router’s configuration file (router.config.yaml):

NameAccepted ValuesOverrides (YAML)
LOG_LEVELtrace / debug / info / warn / errorlog.level
LOG_FORMATjson / pretty-tree / pretty-compactlog.format
LOG_FILTERstringlog.filter
GRAPHIQL_ENABLEDtrue / falsegraphiql.enabled
PORTnumber (port number)http.port
HOSTstring (host name or IP address)http.host
SUPERGRAPH_FILE_PATHstring (relative or absolute path to a local file)supergraph[file].path
HIVE_CDN_ENDPOINTstring (full url to Hive CDN supergraph artifact)supergraph[hive].endpoint
HIVE_CDN_KEYstring (Hive CDN key)supergraph[hive].key
HIVE_CDN_POLL_INTERVALstring (human-readable, for example: 10s)supergraph[hive].poll_interval

In cases where a configuration file (router.config.yaml) is used with environment variables at the same time, environment variables will only override the specific configuration values.

Additional Variables

In addition, you may specify the following environment variables:

NameAccepted ValuesDescription
ROUTER_CONFIG_FILE_PATHstring (relative or absolute path to a local file)Overrides the path to the router configuration file.
Last updated on