mholt/caddy-l4

http active health check

Ouverte

#203 ouverte le 17 juin 2024

 (1 commentaire) (0 réaction) (0 personne assignée)Go (118 forks)github user discovery
enhancementhelp wanted

Métriques du dépôt

Stars
 (1 753 étoiles)
Métriques de merge PR
 (Merge moyen 14j 19h) (7 PRs mergées en 30 j)

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

Guide contributeur