docs: Configuration precedence clarification, fixes #1203

This commit is contained in:
Brian Shumate 2017-03-30 14:13:50 -04:00
parent c57c60e56c
commit 6f17af8453
No known key found for this signature in database
GPG Key ID: B2E211633F870928
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