Do not add 'check' to the backends when the checks are disabled
This commit is contained in:
parent
09a3fc6194
commit
d53ae81129
|
@ -183,5 +183,5 @@ backend {{ srv.acl_name }}_bck
|
|||
stick-table {{ srv.stick_table }}
|
||||
{% 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 %}
|
||||
|
|
Loading…
Reference in New Issue