From c75987cb40e492e630d23a906dff264c2e7f1637 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Fri, 13 Apr 2018 12:02:45 +0200
Subject: [PATCH] Support timeouts for httpchecks

---
 templates/httpcheck.conf | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/templates/httpcheck.conf b/templates/httpcheck.conf
index cff64de..46ad412 100644
--- a/templates/httpcheck.conf
+++ b/templates/httpcheck.conf
@@ -103,9 +103,14 @@ redirect: no
 {{ item.name|to_uuid }}:
     name: '{{ item.name }}'
     url: '{{ item.url }}'
+{% if item.regex is defined %}
     regex: {{ item.regex|regex_escape() }}
+{% endif %}
 {% if item.redirect|default(false) %}
     redirect: yes
 {% endif %}
+{% if item.timeout is defined %}
+    timeout: {{ item.timeout }}
+{% endif %}
 {% endif %}
 {% endfor %}
-- 
GitLab