Health Check endpoint to monitor Caddy itself

I am running caddy in AWS, and plan to use a weighted failover DNS in production (IE if primary goes bad, route traffic to secondary). In order to do so, I need a health check endpoint for AWS to hit for monitoring. I’ve searched the documentation but haven’t found anything relating to this. Does Caddy have its own internal endpoint that i can hit that on the server would give back an HTTP 200 good status if its up?

I don’t think there’s one built in, but you could configure one pretty easily, I think. This will give a 200 with an empty response body to all requests on port 8080:

:8080 {
    status 200 /

The bind directive might also be applicable.


Thanks that worked!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.