mholt/caddy-l4

http active health check

Open

#203 opened on Jun 17, 2024

 (1 comment) (0 reactions) (0 assignees)Go (114 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (1,738 stars)
PR merge metrics
 (Avg merge 14d 19h) (7 merged PRs in 30d)

Description

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

Contributor guide