Merge pull request #1345 from pburgisser/add_skip_route_exemple
Adding example for auth skipping
commit5928fe5485ddec4a4e31dc25e3ce6e559a11776a
authorJoel Speed <Joel.speed@hotmail.co.uk>
dateFri 27 Aug 2021, 11:25 (5 years ago)
parent31f7c5b45e4530
contrib/oauth2-proxy.cfg.example+6
@@ -63,6 +63,12 @@
6363## enabling exposes a username/login signin form
6464# htpasswd_file = ""
6565
66+## bypass authentication for requests that match the method & path. Format: method=path_regex OR path_regex alone for all methods
67+# skip_auth_routes = [
68+# "GET=^/probe",
69+# "^/metrics"
70+# ]
71+
6672## Templates
6773## optional directory with custom sign_in.html and error.html
6874# custom_templates_dir = ""