From e25129c99aeb8164fe05ac04cbb52528608c9625 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 24 Jun 2025 12:37:28 -0600 Subject: [PATCH] Proxy calls to the websocket server --- debian/resources/nginx/fusionpbx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/resources/nginx/fusionpbx b/debian/resources/nginx/fusionpbx index 69ed3be..7e657cd 100755 --- a/debian/resources/nginx/fusionpbx +++ b/debian/resources/nginx/fusionpbx @@ -199,6 +199,15 @@ server { ssl_session_timeout 2h; ssl_session_tickets off; + #redirect websockets to port 8080 + location /websockets/ { + proxy_pass http://127.0.0.1:8080; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + proxy_set_header Host $host; + } + #redirect letsencrypt to dehydrated location ^~ /.well-known/acme-challenge { default_type "text/plain";