Caddy: enable active health checks for LB

This commit is contained in:
Johannes Rothe 2023-09-17 13:24:27 +02:00
parent 45b8d49968
commit 39886f45eb
Signed by: onjen
GPG Key ID: 73F092605AF3286C

View File

@ -1,5 +1,10 @@
{{ caddy.server_name }} { {{ caddy.server_name }} {
reverse_proxy {{ caddy.lb_targets | join(" ") }} { reverse_proxy {{ caddy.lb_targets | join(" ") }} {
lb_policy cookie lb_policy cookie
health_uri /
health_port 80
health_interval 5s
health_timeout 2s
health_status 2xx
} }
} }