Fix: websocket support with explicit yes/no
This commit is contained in:
parent
6754b139c4
commit
a1cbee3297
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -10,4 +10,6 @@ caddy_www: /var/www/caddy
|
|||
reverse_location: localhost
|
||||
reverse_port: 8080
|
||||
|
||||
vhost_name: default
|
||||
vhost_name: default
|
||||
|
||||
websocket: no
|
|
@ -16,7 +16,7 @@
|
|||
transparent
|
||||
}
|
||||
|
||||
{% if websocket_path is defined %}
|
||||
{% if websocket %}
|
||||
proxy {{ websocket_path }} http://{{ websocket_location }}:{{ websocket_port }} {
|
||||
websocket
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue