diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index d6a862c..e76e3f1 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -55,7 +55,7 @@ peers mypeers listen stats {% if docker_swarm_haproxy_ipv4_only %} - bind 0.0.0.0:{{ haproxy_admin_port }} ssl crt {{ haproxy_cert_dir }} alpn http/1.1 + bind 0.0.0.0:{{ haproxy_admin_port }} ssl crt {{ haproxy_cert_dir }} alpn h2,http/1.1 {% elif docker_swarm_haproxy_ipv6_only %} bind :::{{ haproxy_admin_port }} ssl crt {{ haproxy_cert_dir }} alpn h2,http/1.1 {% else %} @@ -121,7 +121,7 @@ frontend http_{{ docker_swarm_haproxy_plain_http_port }} 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 h2,http/1.1{% endif %}{% if docker_swarm_haproxy_accept_proxy %} accept-proxy{% endif %} + 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 %}