1
0
Fork 0
docker-easy-haproxy/src/templates/bind.j2
2023-06-26 14:31:45 -05:00

8 lines
289 B
Django/Jinja

{% if "ssl" in o %}
bind *:{{ o["port"] }} ssl crt /certs/letsencrypt/ alpn h2,http/1.1 crt /certs/haproxy/ alpn h2,http/1.1
{% elif "h2" in o and o["h2"] %}
bind *:{{ o["port"] }} proto h2
option http-use-htx
{% else %}
bind *:{{ o["port"] }}
{% endif %}