From 6856f354e5e0ab49f75171bb4c2346814cb3c162 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Mon, 13 Jun 2016 14:38:37 +0200 Subject: [PATCH] net/haproxy: fixes for haproxy.conf --- .../opnsense/service/templates/OPNsense/HAProxy/haproxy.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf index 91cc336d4..a45bdbc1c 100644 --- a/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf +++ b/net/haproxy/src/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf @@ -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) %}