reverseproxy: Implement admin API for reporting upstream statuses#4125
reverseproxy: Implement admin API for reporting upstream statuses#4125mholt merged 1 commit intocaddyserver:masterfrom
Conversation
19d8743 to
2f7b086
Compare
2f7b086 to
78c9f58
Compare
|
Something funky's going on with github actions... the tests pass but the jobs hard-fail with no results sometimes. I'm very confused. https://www.githubstatus.com/ seems to say everything is fine right now though. Edit: Re-ran a couple times, finished fine this time 🤷♂️ |
mholt
left a comment
There was a problem hiding this comment.
Cool, this is basically exactly what I had in mind. I'll spare a few little nits and just go with it. Thanks! This should be pretty useful.
|
I see this not work. The about the don't understand if we need the Sorry for the distrub, I've read the document explanation carefully and now see it. But, anyway, the |
|
@ttys3 it depends on how you have your health checking configured. Please ask on the forums! https://caddy.community. Also see the docs, which have an explanation of how it works https://caddyserver.com/docs/api#get-reverse-proxyupstreams |
|
Sorry for the distrub, I've read the document explanation carefully and now see it. But, anyway, the |
|
The admin API matches the field names in the internal structs. Changing it now would be a breaking change. The documentation explains it sufficiently IMO, so no need to change it. |
|
Ok. got it. |
As discussed in https://caddy.community/t/cli-to-query-for-upstream-server-status/12210
Tested with a Caddyfile like this: