Add websockets to nginx config

This commit is contained in:
FusionPBX
2025-08-03 10:59:03 -06:00
committed by GitHub
parent 54e84f95df
commit 0b2c7b2add

View File

@@ -180,6 +180,15 @@ server {
ssl_ciphers HIGH:!ADH:!MD5:!aNULL; ssl_ciphers HIGH:!ADH:!MD5:!aNULL;
#ssl_dhparam #ssl_dhparam
#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 #redirect letsencrypt to dehydrated
location ^~ /.well-known/acme-challenge { location ^~ /.well-known/acme-challenge {
default_type "text/plain"; default_type "text/plain";
@@ -290,3 +299,4 @@ server {
deny all; deny all;
} }
} }