From 4684c5064667380bb6c16ddc76dd0e4cf09c2c50 Mon Sep 17 00:00:00 2001 From: driz <40674481+drizuid@users.noreply.github.com> Date: Thu, 14 Mar 2024 10:29:28 -0400 Subject: [PATCH] support authelia 4.38 --- authelia.subdomain.conf.sample | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/authelia.subdomain.conf.sample b/authelia.subdomain.conf.sample index cacd8de..86b7808 100644 --- a/authelia.subdomain.conf.sample +++ b/authelia.subdomain.conf.sample @@ -1,4 +1,4 @@ -## Version 2023/05/31 +## Version 2024/03/14 # make sure that your authelia container is named authelia # make sure that your dns has a cname set for authelia @@ -13,7 +13,6 @@ server { client_max_body_size 0; location / { - include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app authelia; @@ -23,6 +22,7 @@ server { } + ## This section is used for authelia versions older than 4.38 and can be commented out if you do not use it location ~ (/authelia)?/api { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; @@ -32,4 +32,14 @@ server { proxy_pass $upstream_proto://$upstream_app:$upstream_port; } + + ## This section is used for authelia 4.38 and later. + location /api/authz/ { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app authelia; + set $upstream_port 9091; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + } }