mholt / caddy-l4

Layer 4 (TCP/UDP) app for Caddy
Apache License 2.0
806 stars 66 forks source link

http active health check #203

Open smaznet opened 1 week ago

smaznet commented 1 week ago

add a way to check upstreams via http request

defined a endpoint on my host /healthy which returns ok on success currently i used haproxy but i want switch to caddy

example config in http health check:

"active": {
            "port": 0,
            "interval": 0,
            "timeout": 0,

            // new fields
            "type": "http",
            "host": "my-host.com",
                        "path": "/health",
                        "expect_status": 200,

        },
mholt commented 1 week ago

This is open if anyone would like to work on this (I don't have the time currently)