From c9b580cc0d90b032ba727e4988f4e3606dc5e47b Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 8 Mar 2022 09:46:59 +1100 Subject: [PATCH] gitea-haproxy: issue liveness check to HEAD / By default this sends OPTIONS /, which apache rejects with an error. Change-Id: Ie5d55b2a2d96a78b34d23cc6fbac62900a23fc37 --- playbooks/roles/gitea-lb/templates/gitea-haproxy.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/gitea-lb/templates/gitea-haproxy.cfg.j2 b/playbooks/roles/gitea-lb/templates/gitea-haproxy.cfg.j2 index 916f39738a..5631b2e295 100644 --- a/playbooks/roles/gitea-lb/templates/gitea-haproxy.cfg.j2 +++ b/playbooks/roles/gitea-lb/templates/gitea-haproxy.cfg.j2 @@ -27,7 +27,7 @@ listen {{ listener.name }} {% endfor %} mode tcp balance source - option httpchk + option httpchk HEAD / {% for server in listener.servers %} server {{ server.name }} {{ server.address }} {{ server.check_method }}