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