Verified Commit 6554168b authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Add missing configuration for hedgedoc websocket support

The websocket support always 400'd as upgrade headers where missing for
/socket.io
parent 6348b06b
Pipeline #5468 passed with stage
in 39 seconds
...@@ -2,6 +2,11 @@ upstream hedgedoc { ...@@ -2,6 +2,11 @@ upstream hedgedoc {
server localhost:3000; server localhost:3000;
} }
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
...@@ -43,5 +48,7 @@ server { ...@@ -43,5 +48,7 @@ server {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment