Skip to content

Commit 15a3bc9

Browse files
authored
chore: ⚰️ remove authelia 4.37 and below comments
Signed-off-by: GitHub <[email protected]>
1 parent 1567416 commit 15a3bc9

File tree

2 files changed

+5
-27
lines changed

2 files changed

+5
-27
lines changed

root/defaults/nginx/authelia-location.conf.sample

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
## Version 2024/03/14 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/authelia-location.conf.sample
1+
## Version 2025/03/25 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/authelia-location.conf.sample
22
# Make sure that your authelia container is in the same user defined bridge network and is named authelia
33
# Rename /config/nginx/proxy-confs/authelia.subdomain.conf.sample to /config/nginx/proxy-confs/authelia.subdomain.conf
4-
# For authelia 4.37 and below, make sure that the authelia configuration.yml has 'path: "authelia"' defined
5-
# For authelia 4.38 and above, make sure that the authelia configuration.yml has 'address: "tcp://:9091/authelia"' defined
4+
# Make sure that the authelia configuration.yml has 'address: "tcp://:9091/authelia"' defined
65

76
## Send a subrequest to Authelia to verify if the user is authenticated and has permission to access the resource
8-
## For authelia 4.37 and below, use the following line
9-
# auth_request /authelia/api/verify;
10-
## For authelia 4.38 and above, use the following line
117
auth_request /authelia/api/authz/auth-request;
128

139
## If the subreqest returns 200 pass to the backend, if the subrequest returns 401 redirect to the portal

root/defaults/nginx/authelia-server.conf.sample

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
## Version 2024/03/16 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/authelia-server.conf.sample
1+
## Version 2025/03/25 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/authelia-server.conf.sample
22
# Make sure that your authelia container is in the same user defined bridge network and is named authelia
33
# Rename /config/nginx/proxy-confs/authelia.subdomain.conf.sample to /config/nginx/proxy-confs/authelia.subdomain.conf
4-
# For authelia 4.37 and below, make sure that the authelia configuration.yml has 'path: "authelia"' defined
5-
# For authelia 4.38 and above, make sure that the authelia configuration.yml has 'address: "tcp://:9091/authelia"' defined
4+
# Make sure that the authelia configuration.yml has 'address: "tcp://:9091/authelia"' defined
65

76
# location for authelia subfolder requests
87
location ^~ /authelia {
@@ -14,24 +13,7 @@ location ^~ /authelia {
1413
proxy_pass http://$upstream_authelia:9091;
1514
}
1615

17-
# location for authelia 4.37 and below auth requests
18-
location = /authelia/api/verify {
19-
internal;
20-
21-
include /config/nginx/proxy.conf;
22-
include /config/nginx/resolver.conf;
23-
set $upstream_authelia authelia;
24-
proxy_pass http://$upstream_authelia:9091;
25-
26-
## Include the Set-Cookie header if present
27-
auth_request_set $set_cookie $upstream_http_set_cookie;
28-
add_header Set-Cookie $set_cookie;
29-
30-
proxy_pass_request_body off;
31-
proxy_set_header Content-Length "";
32-
}
33-
34-
# location for authelia 4.38 and above auth requests
16+
# location for authelia auth requests
3517
location = /authelia/api/authz/auth-request {
3618
internal;
3719

0 commit comments

Comments
 (0)