Explicitly state precedence of config sources in docs (#1439)
I was recently looking into the order in which oauth2-proxy evaluates it configuration options from the various sources. I think this will also be helpful for other users. Since oauth2-proxy is using viper, the order of configuration sources is as follows [1]: > Viper uses the following precedence order. Each item takes precedence over the item below it: > > explicit call to Set > flag > env > config > key/value store > default [1] https://github.com/spf13/viper/blob/master/README.md#why-viper Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
This commit is contained in:
		
							parent
							
								
									7ed4e3c830
								
							
						
					
					
						commit
						0693856bc3
					
				|  | @ -3,7 +3,7 @@ id: overview | ||||||
| title: Overview | title: Overview | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| `oauth2-proxy` can be configured via [config file](#config-file), [command line options](#command-line-options) or [environment variables](#environment-variables). | `oauth2-proxy` can be configured via [command line options](#command-line-options), [environment variables](#environment-variables) or [config file](#config-file) (in decreasing order of precedence, i.e. command line options will overwrite environment variables and environment variables will overwrite configuration file settings). | ||||||
| 
 | 
 | ||||||
| ### Generating a Cookie Secret | ### Generating a Cookie Secret | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ id: overview | ||||||
| title: Overview | title: Overview | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| `oauth2-proxy` can be configured via [config file](#config-file), [command line options](#command-line-options) or [environment variables](#environment-variables). | `oauth2-proxy` can be configured via [command line options](#command-line-options), [environment variables](#environment-variables) or [config file](#config-file) (in decreasing order of precedence, i.e. command line options will overwrite environment variables and environment variables will overwrite configuration file settings). | ||||||
| 
 | 
 | ||||||
| ### Generating a Cookie Secret | ### Generating a Cookie Secret | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ id: overview | ||||||
| title: Overview | title: Overview | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| `oauth2-proxy` can be configured via [config file](#config-file), [command line options](#command-line-options) or [environment variables](#environment-variables). | `oauth2-proxy` can be configured via [command line options](#command-line-options), [environment variables](#environment-variables) or [config file](#config-file) (in decreasing order of precedence, i.e. command line options will overwrite environment variables and environment variables will overwrite configuration file settings). | ||||||
| 
 | 
 | ||||||
| ### Generating a Cookie Secret | ### Generating a Cookie Secret | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ id: overview | ||||||
| title: Overview | title: Overview | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| `oauth2-proxy` can be configured via [config file](#config-file), [command line options](#command-line-options) or [environment variables](#environment-variables). | `oauth2-proxy` can be configured via [command line options](#command-line-options), [environment variables](#environment-variables) or [config file](#config-file) (in decreasing order of precedence, i.e. command line options will overwrite environment variables and environment variables will overwrite configuration file settings). | ||||||
| 
 | 
 | ||||||
| ### Generating a Cookie Secret | ### Generating a Cookie Secret | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ id: overview | ||||||
| title: Overview | title: Overview | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| `oauth2-proxy` can be configured via [config file](#config-file), [command line options](#command-line-options) or [environment variables](#environment-variables). | `oauth2-proxy` can be configured via [command line options](#command-line-options), [environment variables](#environment-variables) or [config file](#config-file) (in decreasing order of precedence, i.e. command line options will overwrite environment variables and environment variables will overwrite configuration file settings). | ||||||
| 
 | 
 | ||||||
| ### Generating a Cookie Secret | ### Generating a Cookie Secret | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue