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/authentik-server.conf.sample
## Version 2023/04/27 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/authentik-server.conf.sample
# Make sure that your authentik container is in the same user defined bridge network and is named authentik-server
# Rename /config/nginx/proxy-confs/authentik.subdomain.conf.sample to /config/nginx/proxy-confs/authentik.subdomain.conf
@@ -10,8 +10,7 @@ location ^~ /outpost.goauthentik.io {
set $upstream_authentik authentik-server;
proxy_pass http://$upstream_authentik:9000;
## 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;
@@ -22,8 +21,7 @@ location ^~ /outpost.goauthentik.io {
location @goauthentik_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.