Proxy calls to the websocket server

This commit is contained in:
FusionPBX
2025-06-24 12:37:28 -06:00
committed by GitHub
parent b361af8c11
commit e25129c99a

View File

@@ -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";