mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-19 21:03:46 -07:00
support authelia 4.38
This commit is contained in:
parent
c3ba635920
commit
4684c50646
1 changed files with 12 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue