diff --git a/haproxy/files/haproxy.cfg b/haproxy/files/haproxy.cfg index 6db883a..30dae83 100644 --- a/haproxy/files/haproxy.cfg +++ b/haproxy/files/haproxy.cfg @@ -75,7 +75,7 @@ userlist STATSUSERS listen {{ listen_name }} {%- for bind in listen.binds %} - bind {{ bind.address }}:{{ bind.port }} {% if bind.get('ssl', {}).enabled|default(False) %}{% if bind.ssl.pem_file is defined %}ssl crt {{ bind.ssl.pem_file }}{% else %}ssl crt /etc/haproxy/ssl/{{ listen_name }}{% endif %}{% endif %} + bind {{ bind.address }}:{{ bind.port }} {% if bind.get('ssl', {}).enabled|default(False) %}{% if bind.ssl.pem_file is defined %}ssl crt {{ bind.ssl.pem_file }}{% elif bind.ssl.list_file is defined %}ssl crt-list {{ bind.ssl.list_file }}{% else %}ssl crt /etc/haproxy/ssl/{{ listen_name }}{% endif %}{% endif %} {%- endfor %} {%- if listen.bind_process is defined %} bind-process {{ listen.bind_process }} @@ -231,7 +231,7 @@ listen {{ listen_name }} frontend {{ listen_name }} {%- for bind in listen.binds %} - bind {{ bind.address }}:{{ bind.port }} {% if bind.get('ssl', {}).enabled|default(False) %} {% if bind.ssl.pem_file is defined %}ssl crt {{ bind.ssl.pem_file }}{% else %}ssl crt /etc/haproxy/ssl/{{ listen_name }}{% endif %} {% endif %} + bind {{ bind.address }}:{{ bind.port }} {% if bind.get('ssl', {}).enabled|default(False) %} {% if bind.ssl.pem_file is defined %}ssl crt {{ bind.ssl.pem_file }}{% elif bind.ssl.list_file is defined %}ssl crt-list {{ bind.ssl.list_file }}{% else %}ssl crt /etc/haproxy/ssl/{{ listen_name }}{% endif %} {% endif %} {% endfor %} {% if listen.get('force_ssl') == true %} redirect scheme https code 301 if !{ ssl_fc }