Disable the http check in the portainer backend.

This commit is contained in:
Andrea Dell'Amico 2024-07-24 12:09:24 +02:00
parent 7eecbb912e
commit 975521d237
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 5 additions and 4 deletions

View File

@ -231,10 +231,11 @@ backend swarm_api_bck
{% if docker_swarm_cluster_portainer_install %} {% if docker_swarm_cluster_portainer_install %}
backend portainer_bck backend portainer_bck
mode http mode http
option httpchk # No need to check until portainer can be replicated
http-check send meth HEAD uri / ver HTTP/1.1 hdr Host localhost # option httpchk
http-check expect rstatus (2|3)[0-9][0-9] # http-check send meth HEAD uri / ver HTTP/1.1 hdr Host localhost
balance roundrobin # 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 set-header X-Forwarded-Proto https if { ssl_fc }
http-request redirect scheme https code 301 unless { 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 server-template portainer- 1 portainer_portainer:{{ docker_swarm_portainer_http_port }} check resolvers docker init-addr libc,none