Add websocket support.

This commit is contained in:
Greyscale 2022-05-16 11:55:29 +02:00
parent 7bc09cbd21
commit b9921d8a95
No known key found for this signature in database
GPG key ID: EF017054C3E9CD59

View file

@ -24,6 +24,12 @@ server {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $host;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass {{ targetPath }};
}
}