From bf943388456e055f81ea017b143a56f50f700927 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 30 Sep 2025 11:17:54 +0200 Subject: [PATCH] Nextcloud/Nginx: wire Talk signaling WS location via reusable snippet Conditionally include the generic WebSocket proxy block for NEXTCLOUD_TALK_SIGNALING_ENABLED. Set location_ws to '^~ ' and ws_port to NEXTCLOUD_PORT, then include roles/sys-svc-proxy/templates/location/ws.conf.j2. This enables proper Upgrade/Connection headers and disables buffering for the signaling path. Context: https://chatgpt.com/share/68db9f41-16ec-800f-9cdf-7530862f89aa --- roles/web-app-nextcloud/templates/nginx/host.conf.j2 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/web-app-nextcloud/templates/nginx/host.conf.j2 b/roles/web-app-nextcloud/templates/nginx/host.conf.j2 index 663eb2a3..a1ba30c6 100644 --- a/roles/web-app-nextcloud/templates/nginx/host.conf.j2 +++ b/roles/web-app-nextcloud/templates/nginx/host.conf.j2 @@ -17,6 +17,12 @@ server client_body_buffer_size 400M; fastcgi_buffers 64 4K; + {% if NEXTCLOUD_TALK_SIGNALING_ENABLED | bool %} + {% set location_ws = '^~ ' ~ NEXTCLOUD_TALK_SIGNALING_LOCATION %} + {% set ws_port = NEXTCLOUD_PORT %} + {% include 'roles/sys-svc-proxy/templates/location/ws.conf.j2' %} + {% endif %} + {% include 'roles/sys-svc-proxy/templates/location/html.conf.j2' %} location ^~ /.well-known {