diff --git a/root/defaults/nginx/authelia-server.conf.sample b/root/defaults/nginx/authelia-server.conf.sample index 805aadb..17d5a93 100644 --- a/root/defaults/nginx/authelia-server.conf.sample +++ b/root/defaults/nginx/authelia-server.conf.sample @@ -10,6 +10,16 @@ location ^~ /authelia { include /config/nginx/resolver.conf; set $upstream_authelia authelia; proxy_pass http://$upstream_authelia:9091; +} + +# location for authelia auth requests +location = /authelia/api/verify { + internal; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_authelia authelia; + proxy_pass http://$upstream_authelia:9091; ## Include the Set-Cookie header if present auth_request_set $set_cookie $upstream_http_set_cookie; @@ -19,7 +29,7 @@ location ^~ /authelia { proxy_set_header Content-Length ""; } -# Virtual location for authelia 401 redirects +# virtual location for authelia 401 redirects location @authelia_proxy_signin { internal; diff --git a/root/defaults/nginx/authentik-server.conf.sample b/root/defaults/nginx/authentik-server.conf.sample index 29bd233..aadaf62 100644 --- a/root/defaults/nginx/authentik-server.conf.sample +++ b/root/defaults/nginx/authentik-server.conf.sample @@ -9,6 +9,16 @@ location ^~ /outpost.goauthentik.io { include /config/nginx/resolver.conf; set $upstream_authentik authentik-server; proxy_pass http://$upstream_authentik:9000; +} + +# location for authentik auth requests +location = /outpost.goauthentik.io/auth/nginx { + internal; + + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_authentik authentik-server; + proxy_pass http://$upstream_authentik:9000; ## Include the Set-Cookie header if present auth_request_set $set_cookie $upstream_http_set_cookie; @@ -18,7 +28,7 @@ location ^~ /outpost.goauthentik.io { proxy_set_header Content-Length ""; } -# Virtual location for authentik 401 redirects +# virtual location for authentik 401 redirects location @goauthentik_proxy_signin { internal;