Do not add 'check' to the backends when the checks are disabled

This commit is contained in:
Andrea Dell'Amico 2020-11-09 16:15:17 +01:00
parent 09a3fc6194
commit d53ae81129
1 changed files with 1 additions and 1 deletions

View File

@ -183,5 +183,5 @@ backend {{ srv.acl_name }}_bck
stick-table {{ srv.stick_table }} stick-table {{ srv.stick_table }}
{% endif %} {% endif %}
{% endif %} {% endif %}
server-template {{ srv.service_name }}- {{ srv.service_replica_num }} {{ srv.stack_name }}_{{ srv.service_name }}:{{ srv.service_port }} {{ srv.backend_options | default('') }} check resolvers docker init-addr libc,none server-template {{ srv.service_name }}- {{ srv.service_replica_num }} {{ srv.stack_name }}_{{ srv.service_name }}:{{ srv.service_port }} {{ srv.backend_options | default('') }} {% if srv.http_check_enabled is defined and srv.http_check_enabled %}check{% endif %} resolvers docker init-addr libc,none
{% endfor %} {% endfor %}