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; + } }