1
0
Fork 0

Support socket.io in nginx template

This commit is contained in:
Chocobozzz 2019-01-29 09:10:24 +01:00
parent d452048127
commit 4a57b65cc5
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -158,4 +158,16 @@ server {
proxy_set_header Host $host;
proxy_pass http://localhost:9000;
}
location /socket.io {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://localhost:9000;
# enable WebSockets
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}