Przeglądaj źródła

Proxy calls to the websocket server

FusionPBX 1 miesiąc temu
rodzic
commit
e25129c99a
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      debian/resources/nginx/fusionpbx

+ 9 - 0
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";