Add websocket config support

This commit is contained in:
Wilfried OLLIVIER 2019-02-01 17:45:14 +01:00
parent a1902ffa0a
commit 85f0c12a11
2 changed files with 10 additions and 0 deletions

View file

@ -16,6 +16,12 @@
transparent
}
{% if websocket_path is defined %}
proxy {{ websocket_path }} http://{{ websocket_location }}:{{ websocket_port }} {
websocket
}
{% endif %}
log {{ caddy_logs }}/{{ vhost_name }}/access.log {
rotate_size 100
rotate_age 30