Fix WebSocket support

This commit is contained in:
Sam A. 2024-01-01 16:33:52 +01:00
parent 0db32bf185
commit 99942dadfb
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -13,9 +13,13 @@ server {
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 "https"; proxy_set_header X-Forwarded-Proto "https";
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade; proxy_set_header Connection $connection_upgrade;
# Options required by Nextcloud
proxy_read_timeout 86400s; proxy_read_timeout 86400s;
client_body_buffer_size 512k; client_body_buffer_size 512k;
client_max_body_size 0; client_max_body_size 0;