Add additional headers for quassel-web

These are taken from the quassel-webserver readme. Without them, the
client would fail to connect to the core with messages like:

Unchecked runtime.lastError: The message port closed before a response was received.
This commit is contained in:
Gabriel Nagy 2021-04-10 01:41:53 +03:00
commit 36c47b11c1
No known key found for this signature in database
GPG key ID: A2B2C9C0F6B672B3
2 changed files with 12 additions and 0 deletions

View file

@ -37,5 +37,11 @@ server {
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
}

View file

@ -21,4 +21,10 @@ location ^~ /quassel {
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}