as title, when i setting the GitHub - gethomepage/homepage: A highly customizable homepage (or startpage / application dashboard) with Docker and service API integrations. 's widget service, it will get data by https://caddy.nebulosa-cat.me/reverse_proxy/upstreams, and it got a blank output.
but the output on https://caddy.nebulosa-cat.me is normal show the metrics data (on desktop not on the host device).
# HELP caddy_admin_http_requests_total Counter of requests made to the Admin API's HTTP endpoints.
# TYPE caddy_admin_http_requests_total counter
caddy_admin_http_requests_total{code="200",handler="load",method="POST",path="/load"} 9
caddy_admin_http_requests_total{code="200",handler="reverse_proxy",method="GET",path="/reverse_proxy/upstreams"} 2
# HELP caddy_http_request_duration_seconds Histogram of round-trip request durations.
# TYPE caddy_http_request_duration_seconds histogram
...
my caddy is host on rpi4b on pi os bulleye
and it have cloudflare plugin (use xcaddy)
it’s version is v2.7.6 h1:w0NymbG2m9PcvKWsrXO6EEkY9Ru4FJK8uQbYcev1p3A=
my Caddyfile:
caddy.nebulosa-cat.me {
metrics /
tls admin@nebulosa-cat.com {
dns cloudflare api-token
}
}
sub-store.nebulosa-cat.me {
reverse_proxy http://127.0.0.1:3001
tls admin@nebulosa-cat.com {
dns cloudflare api-token
}
}
wol.nebulosa-cat.me {
reverse_proxy localhost:8090
tls admin@nebulosa-cat.com {
dns cloudflare api-token
}
}
on the device i’m host cady (in here is Pi4b)
input : curl http://localhost:2019/
output:
404 page not found
input : curl http://localhost:2019/metrics
output:
# HELP caddy_admin_http_requests_total Counter of requests made to the Admin API's HTTP endpoints.
# TYPE caddy_admin_http_requests_total counter
caddy_admin_http_requests_total{code="200",handler="load",method="POST",path="/load"} 9
caddy_admin_http_requests_total{code="200",handler="reverse_proxy",method="GET",path="/reverse_proxy/upstreams"} 2
# HELP caddy_http_request_duration_seconds Histogram of round-trip request durations.
# TYPE caddy_http_request_duration_seconds histogram
...
input: curl http://localhost:2019/reverse_proxy/upstreams
output:
[{"address":"localhost:8090","num_requests":0,"fails":0},{"address":"127.0.0.1:3001","num_requests":0,"fails":0}]
input: curl https://caddy.nebulosa-cat.me/
output:
# HELP caddy_admin_http_requests_total Counter of requests made to the Admin API's HTTP endpoints.
# TYPE caddy_admin_http_requests_total counter
caddy_admin_http_requests_total{code="200",handler="load",method="POST",path="/load"} 9
caddy_admin_http_requests_total{code="200",handler="reverse_proxy",method="GET",path="/reverse_proxy/upstreams"} 2
# HELP caddy_http_request_duration_seconds Histogram of round-trip request durations.
# TYPE caddy_http_request_duration_seconds histogram
...
input: curl https://caddy.nebulosa-cat.me/metrics
output: blank
input: curl https://caddy.nebulosa-cat.me/caddy_reverse_proxy_upstreams
output: blank
input: curl https://caddy.nebulosa-cat.me/metrics/caddy_reverse_proxy_upstreams
output: blank
is there any setting in Cadddyfile I miss ?
or it just only work in http mode? because if possible https normally better then http i think ?