Merge pull request #2856 from hashicorp/jbs-1203

docs: Configuration precedence clarification, fixes #1203
This commit is contained in:
James Phillips 2017-03-30 11:15:25 -07:00 committed by GitHub
commit 0de1b40790
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,12 @@ the command-line or via configuration files. All of the configuration
options are completely optional. Defaults are specified with their
descriptions.
Configuration precedence is evaluated in the following order:
1. Command line arguments
2. Environment Variables
3. Configuration files
When loading configuration, Consul loads the configuration from files
and directories in lexical order. For example, configuration file `basic_config.json`
will be processed before `extra_config.json`. Configuration specified later