I’m running caddy on several instances behind a load balancer. The load balancer needs a health check url to know if caddy is down or is going down soon. It’ll then stop routing traffic to that instance.
I couldn’t find anything about health checks other than caddy checking proxied instances itself.
The -grace flag will keep caddy running until x seconds on shutdown. In that period I’d like to have an endpoint respond with something else than a 200 status code. I looked at the template actions and http.status but couldn’t find anything.
I thought maybe something like this was possible:
:80/ping {
status CADDYSTATUS /
}
I’m running caddy v1.