consul/website/source/docs/commands/environment.html.md
2016-12-05 16:56:31 -05:00

1.5 KiB

layout page_title sidebar_current description
docs Environment docs-commands-environment Consul's behavior can be modified by certain environment variables.

Environment variables

The Consul CLI will read the following environment variables to set behavioral defaults. These can be overridden in all cases using command-line arguments; see the Consul Commands documentation for details.

The following table describes these variables:

Variable name Value
CONSUL_HTTP_ADDR The HTTP API address as a host:port pair or path to Unix socket, for example 127.0.0.1:8500 or unix:///var/run/consul_http.sock
CONSUL_HTTP_TOKEN The API access token required when access control lists (ACLs) are enabled
CONSUL_HTTP_AUTH The HTTP Basic access credentials as a username:password pair
CONSUL_HTTP_SSL Boolean (default False) to specify HTTPS connections
CONSUL_HTTP_SSL_VERIFY Boolean (default True) to specify SSL certificate verification
CONSUL_RPC_ADDR The RPC interface address as a host:port pair or path to Unix socket, for example 127.0.0.1:8300 or unix:///var/run/consul_rpc.sock