Adjust auth confs to fix cookie header conflict

This commit is contained in:
Eric Nemchik
2023-04-27 18:48:27 +00:00
committed by GitHub
parent 9cdedad1c8
commit d8f252dd73
12 changed files with 133 additions and 44 deletions

View File

@@ -1,4 +1,4 @@
## Version 2023/04/24 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/authelia-server.conf.sample
## Version 2023/04/27 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/authelia-server.conf.sample
# Make sure that your authelia container is in the same user defined bridge network and is named authelia
# Rename /config/nginx/proxy-confs/authelia.subdomain.conf.sample to /config/nginx/proxy-confs/authelia.subdomain.conf
# Make sure that the authelia configuration.yml has 'path: "authelia"' defined
@@ -11,8 +11,7 @@ location ^~ /authelia {
set $upstream_authelia authelia;
proxy_pass http://$upstream_authelia:9091;
## Include the Set-Cookie header if present.
auth_request_set $set_cookie $upstream_http_set_cookie;
## Include the Set-Cookie header if present
add_header Set-Cookie $set_cookie;
proxy_pass_request_body off;
@@ -23,8 +22,7 @@ location ^~ /authelia {
location @authelia_proxy_signin {
internal;
## Include the Set-Cookie header if present.
auth_request_set $set_cookie $upstream_http_set_cookie;
## Include the Set-Cookie header if present
add_header Set-Cookie $set_cookie;
## Set the $target_url variable based on the original request.