mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/haproxy: fixes for haproxy.conf
This commit is contained in:
@@ -652,7 +652,7 @@ backend {{backend.name}}
|
||||
{# # health check option #}
|
||||
{% set healthcheck_options = [] %}
|
||||
{% if healthcheck_data.type|default("") == "" %}
|
||||
{% set healthcheck_enabled = '1' %}
|
||||
{% set healthcheck_enabled = '0' %}
|
||||
{% elif healthcheck_data.type == 'tcp' %}
|
||||
{# # TCP check does not require additional options #}
|
||||
{% elif healthcheck_data.type == 'http' %}
|
||||
@@ -768,7 +768,7 @@ backend {{backend.name}}
|
||||
{% set server_data = helpers.getUUID(server) %}
|
||||
{# # collect optional server parameters #}
|
||||
{% set server_options = [] %}
|
||||
{# if# check if health check is enabled #}("") != "" %}
|
||||
{# # check if health check is enabled # %}
|
||||
{% if healthcheck_enabled == '1' %}
|
||||
{% do server_options.append('check') %}
|
||||
{% do server_options.append('inter ' ~ server_data.checkInterval) %}
|
||||
|
||||
Reference in New Issue
Block a user