From 45e45303ad5e285662326a6143b9450bbd2fe020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20B=C3=BCrgisser?= Date: Fri, 27 Aug 2021 09:37:51 +0200 Subject: [PATCH] Adding example for auth skiping --- contrib/oauth2-proxy.cfg.example | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/oauth2-proxy.cfg.example b/contrib/oauth2-proxy.cfg.example index f003a054..cb0e8dcb 100644 --- a/contrib/oauth2-proxy.cfg.example +++ b/contrib/oauth2-proxy.cfg.example @@ -63,6 +63,12 @@ ## enabling exposes a username/login signin form # htpasswd_file = "" +## bypass authentication for requests that match the method & path. Format: method=path_regex OR path_regex alone for all methods +# skip_auth_routes = [ +# "GET=^/probe", +# "^/metrics" +# ] + ## Templates ## optional directory with custom sign_in.html and error.html # custom_templates_dir = ""