Fixes #3531 - Nginx SSL configuration improvement to prevent "CSRF token verification failed!" error

This commit is contained in:
Azertooth 2021-04-27 18:15:16 +02:00 committed by Mantas
parent 1e35eaf770
commit e43abf2a96

View file

@ -94,6 +94,7 @@ server {
proxy_set_header Connection "Upgrade";
proxy_set_header CLIENT_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 86400;
proxy_pass http://zammad-websocket;
}
@ -102,6 +103,7 @@ server {
proxy_set_header Host $http_host;
proxy_set_header CLIENT_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# change this line in an SSO setup
proxy_set_header X-Forwarded-User "";