Add a high default tunnel timeout when websockets are in use by the backend.

This commit is contained in:
Andrea Dell'Amico 2026-02-12 16:19:28 +01:00
parent d9bfff2f06
commit 5df6fad01c
Signed by untrusted user: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 0 deletions

View File

@ -291,6 +291,10 @@ backend {{ srv.acl_name }}_bck
{% else %}
mode http
option httpchk
{% if srv.enable_websocket is defined and srv.enable_websocket %}
option http-server-close
timeout tunnel {{ haproxy_tunnel_timeout | default('1h') }}
{% endif %}
balance {{ srv.balance_type | default('roundrobin') }}
{% if srv.http_check_enabled is defined and srv.http_check_enabled %}
http-check send {{ srv.http_check }}