- move scripts to assets/scripts (and updated build) - put most logic into HaproxyConfigGenerator - created DockerLabelHandler for all label handling from previous code - added unit tests and fixtures to cover HaproxyConfigGenerator and DockerLabelHandler - added a Makefile with build (for docker build) and test targets
8 lines
241 B
Django/Jinja
8 lines
241 B
Django/Jinja
{% if "ssl_cert" in o %}
|
||
bind *:{{ o["port"] }} ssl crt {{ o["ssl_cert"] }}
|
||
{% elif "h2" in o and o["h2"] %}
|
||
bind *:{{ o["port"] }} proto h2
|
||
option http-use-htx
|
||
{% else %}
|
||
bind *:{{ o["port"] }}
|
||
{% endif %}
|