Disable the http check in the portainer backend.
This commit is contained in:
parent
7eecbb912e
commit
975521d237
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue