mirror of
https://github.com/linuxserver/docker-swag.git
synced 2026-04-12 16:03:09 +09:00
Adjust auth confs to fix cookie header conflict
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user