From 6f17af84533c85febb85ccf5135f57515fa776f8 Mon Sep 17 00:00:00 2001 From: Brian Shumate Date: Thu, 30 Mar 2017 14:13:50 -0400 Subject: [PATCH] docs: Configuration precedence clarification, fixes #1203 --- website/source/docs/agent/options.html.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/source/docs/agent/options.html.markdown b/website/source/docs/agent/options.html.markdown index d12f97f428..71e9c24abb 100644 --- a/website/source/docs/agent/options.html.markdown +++ b/website/source/docs/agent/options.html.markdown @@ -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