forked from norman/fusionpbx-install.sh-github-mirror
Proxy calls to the websocket server
This commit is contained in:
9
debian/resources/nginx/fusionpbx
vendored
9
debian/resources/nginx/fusionpbx
vendored
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user