From 975521d237d63b15c0dae93542e4678e46c4c279 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 24 Jul 2024 12:09:24 +0200 Subject: [PATCH] Disable the http check in the portainer backend. --- templates/haproxy.cfg.j2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/haproxy.cfg.j2 b/templates/haproxy.cfg.j2 index 0ec794b..09f635c 100644 --- a/templates/haproxy.cfg.j2 +++ b/templates/haproxy.cfg.j2 @@ -231,10 +231,11 @@ backend swarm_api_bck {% if docker_swarm_cluster_portainer_install %} backend portainer_bck mode http - option httpchk - http-check send meth HEAD uri / ver HTTP/1.1 hdr Host localhost - http-check expect rstatus (2|3)[0-9][0-9] - balance roundrobin + # No need to check until portainer can be replicated + # option httpchk + # http-check send meth HEAD uri / ver HTTP/1.1 hdr Host localhost + # http-check expect rstatus (2|3)[0-9][0-9] + # balance roundrobin http-request set-header X-Forwarded-Proto https if { ssl_fc } http-request redirect scheme https code 301 unless { ssl_fc } server-template portainer- 1 portainer_portainer:{{ docker_swarm_portainer_http_port }} check resolvers docker init-addr libc,none