Option to enable websockets for the noVNC console
This commit is contained in:
parent
f68f57d0cf
commit
c67a39982e
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,13 +1,3 @@
|
|||||||
.vagrant
|
.vagrant
|
||||||
.playbook
|
.playbook
|
||||||
/*.yml
|
|
||||||
/*.yaml
|
|
||||||
!backup.yml
|
|
||||||
!moxie.yml
|
|
||||||
!docker.yml
|
|
||||||
!dockerbox.yml
|
|
||||||
!hypervisor.yml
|
|
||||||
!minecraft.yml
|
|
||||||
!proxy.yml
|
|
||||||
!unifi.yml
|
|
||||||
/environments/
|
/environments/
|
||||||
|
@ -46,6 +46,12 @@ server {
|
|||||||
proxy_pass {{ item.proxy_pass }};
|
proxy_pass {{ item.proxy_pass }};
|
||||||
{% if item.proxy_ssl_verify is defined and item.proxy_ssl_verify is false %}
|
{% if item.proxy_ssl_verify is defined and item.proxy_ssl_verify is false %}
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
|
{% endif %}
|
||||||
|
{% if item.websockets is defined and item.websockets %}
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_set_header Connection $http_connection;
|
||||||
|
proxy_set_header Origin http://$host;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user