1
0
Fork 0
docker-easy-haproxy/templates/bind.j2
2022-08-15 04:31:50 +00:00

8 lines
273 B
Django/Jinja

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