test add acl backend websocket

This commit is contained in:
Marco Procaccini 2026-02-17 15:13:11 +01:00
parent d3471bd2d3
commit 07cc92ab92
1 changed files with 6 additions and 1 deletions

View File

@ -123,7 +123,7 @@ frontend http
{% if docker_swarm_haproxy_ipv4_only %}
bind 0.0.0.0:{{ https_port }} ssl crt {{ haproxy_cert_dir }}{% if docker_swarm_haproxy_http2_enabled %} alpn http/1.1{% endif %}{% if docker_swarm_haproxy_accept_proxy %} accept-proxy{% endif %}
# bind 0.0.0.0:{{ haproxy_default_port }} {% if docker_swarm_haproxy_accept_proxy %}accept-proxy{% endif %}
bind 0.0.0.0:{{ haproxy_default_port }} {% if docker_swarm_haproxy_accept_proxy %}accept-proxy{% endif %}
{% elif docker_swarm_haproxy_ipv6_only %}
bind :::{{ https_port }} ssl crt {{ haproxy_cert_dir }}{% if docker_swarm_haproxy_http2_enabled %} alpn h2,http/1.1{% endif %}{% if docker_swarm_haproxy_accept_proxy %} accept-proxy{% endif %}
@ -144,6 +144,11 @@ frontend http
http-request set-header X-Forwarded-Proto https if { ssl_fc }
# Remove the port from the host endpoint.
http-request replace-value Host (.*):.* \1
acl is_websocket hrd_upgrade(WebSocket) -i WebSocket
use_backend dev_itineris_italian_seas_bck if is_websocket
{% if docker_swarm_cluster_portainer_install %}
acl portainer_srv hdr(host) -i {{ docker_swarm_portainer_hostname }}
{% endif %}