Add support for root websocket
This commit is contained in:
parent
4c876fffb8
commit
9eb840c233
3 changed files with 7 additions and 1 deletions
|
@ -20,6 +20,7 @@ Role Variables
|
|||
- caddy_www: /var/www/caddy
|
||||
- reverse_location: reverse destination point
|
||||
- reverse_port: port to redirect to
|
||||
- rootws: yes/no activate websocket in the / path
|
||||
- websocket_path: path to websocket (optional)
|
||||
- websocket_localtion: reverse destination point for websocket config
|
||||
- websocket_port: websocket port to redirect to
|
||||
|
|
|
@ -12,4 +12,6 @@ reverse_port: 8080
|
|||
|
||||
vhost_name: default
|
||||
|
||||
websocket: no
|
||||
websocket: no
|
||||
|
||||
rootws: no
|
|
@ -13,6 +13,9 @@
|
|||
}
|
||||
|
||||
proxy / http://{{ reverse_location }}:{{ reverse_port }} {
|
||||
{% if rootws %}
|
||||
websocket
|
||||
{% endif %}
|
||||
transparent
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue