forked from norman/fusionpbx-install.sh-github-mirror
Add websockets to nginx config
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user