support authelia 4.38

This commit is contained in:
driz 2024-03-14 10:29:28 -04:00 committed by GitHub
commit 4684c50646
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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