Fix: websocket support with explicit yes/no

This commit is contained in:
Wilfried OLLIVIER 2019-02-01 19:04:44 +01:00
parent 6754b139c4
commit a1cbee3297
3 changed files with 5 additions and 2 deletions

View file

@ -23,6 +23,7 @@ Role Variables
- websocket_path: path to websocket (optional)
- websocket_localtion: reverse destination point for websocket config
- websocket_port: websocket port to redirect to
- websocket: yes/no - enable websocket block in config file
- vhost_name: name of the vhost
Dependencies

View file

@ -10,4 +10,6 @@ caddy_www: /var/www/caddy
reverse_location: localhost
reverse_port: 8080
vhost_name: default
vhost_name: default
websocket: no

View file

@ -16,7 +16,7 @@
transparent
}
{% if websocket_path is defined %}
{% if websocket %}
proxy {{ websocket_path }} http://{{ websocket_location }}:{{ websocket_port }} {
websocket
}