mholt/caddy-l4

http active health check

Aperta

#203 aperta il 17 giu 2024

 (1 commento) (0 reazioni) (0 assegnatari)Go (118 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (1751 stelle)
Metriche merge PR
 (Merge medio 14g 19h) (7 PR mergiate in 30 g)

Descrizione

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,
			
		},

Guida contributor