From 0fc4131c72b6be8e4b6aea752cdeefc2c4172f64 Mon Sep 17 00:00:00 2001 From: Jakub Holy Date: Fri, 13 Mar 2020 21:21:15 +0100 Subject: [PATCH] configuration.md: clarify CLI -> config options (#442) Clarify how to rename CLI options to be able to set them in the config file. I have just spent an hour trying to find out why `whitelist_domain="..."` does not work :-) Co-authored-by: Joel Speed --- docs/configuration/configuration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index 40efd01c..f0e22b01 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -14,6 +14,8 @@ To generate a strong cookie secret use `python -c 'import os,base64; print(base6 ### Config File +Every command line argument can be specified in a config file by replacing hypens (-) with underscores (\_). If the argument can be specified multiple times, the config option should be plural (trailing s). + An example [oauth2_proxy.cfg]({{ site.gitweb }}/contrib/oauth2_proxy.cfg.example) config file is in the contrib directory. It can be used by specifying `-config=/etc/oauth2_proxy.cfg` ### Command Line Options