1
0
Fork 0
docker-easy-haproxy/templates/bind.j2
2022-08-17 22:04:10 +00:00

8 lines
283 B
Django/Jinja

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