diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2026-06-23 18:45:17 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-23 18:45:17 +0300 |
| commit | 105c2470df751f9bff280255506640e63204e3bb (patch) | |
| tree | 18e25c127bf66f6316e91cc8646718ff6f34a9a1 /data | |
| parent | 4e74f21299c77a35115a61908a2c84e390e1f0d1 (diff) | |
| parent | 4f550fc5184f7d583f5976e801e9cae4d06e0cb6 (diff) | |
| download | vyos-1x-105c2470df751f9bff280255506640e63204e3bb.tar.gz vyos-1x-105c2470df751f9bff280255506640e63204e3bb.zip | |
Merge pull request #5226 from indrajitr/haproxy-websocket
haproxy: T8931: Improve WebSocket support for HAProxy
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/load-balancing/haproxy.cfg.j2 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/data/templates/load-balancing/haproxy.cfg.j2 b/data/templates/load-balancing/haproxy.cfg.j2 index 79fb5e369..438796cee 100644 --- a/data/templates/load-balancing/haproxy.cfg.j2 +++ b/data/templates/load-balancing/haproxy.cfg.j2 @@ -42,6 +42,7 @@ defaults timeout connect {{ timeout.connect }}s timeout client {{ timeout.client }}s timeout server {{ timeout.server }}s + timeout tunnel {{ timeout.tunnel }}s errorfile 400 /etc/haproxy/errors/400.http errorfile 403 /etc/haproxy/errors/403.http errorfile 408 /etc/haproxy/errors/408.http @@ -205,6 +206,9 @@ backend {{ back }} option forwardfor http-request set-header X-Forwarded-Port %[dst_port] http-request add-header X-Forwarded-Proto https if { ssl_fc } +{% if back_config.http_server_close is vyos_defined %} + option http-server-close +{% endif %} {% endif %} {% if back_config.logging is vyos_defined %} {% for facility, facility_config in back_config.logging.facility.items() %} @@ -285,5 +289,8 @@ backend {{ back }} {% if back_config.timeout.server is vyos_defined %} timeout server {{ back_config.timeout.server }}s {% endif %} +{% if back_config.timeout.tunnel is vyos_defined %} + timeout tunnel {{ back_config.timeout.tunnel }}s +{% endif %} {% endfor %} {% endif %} |
