From 99942dadfbaafe84dfd9b0ffb6171ee51917945e Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Mon, 1 Jan 2024 16:33:52 +0100 Subject: [PATCH] Fix WebSocket support --- roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 index e1cb0c8..63e161a 100644 --- a/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 +++ b/roles/apps/templates/nginx/conf.d/nextcloud.conf.j2 @@ -13,9 +13,13 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto "https"; proxy_set_header X-Real-IP $remote_addr; + + # WebSocket support + proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; + # Options required by Nextcloud proxy_read_timeout 86400s; client_body_buffer_size 512k; client_max_body_size 0;