fix(infra): move Caddy metrics to global option

Caddy 2.9 deprecated the nested `servers { metrics }` form; every
deploy logs a deprecation warning. The global `metrics` option is the
replacement and emits the same Prometheus metrics on the admin
endpoint, so the existing scrape config is unaffected.

Validated with `caddy validate` against the caddy:2 image — config
valid, no deprecation warnings.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-06-07 08:30:17 +02:00
parent a4807aab1a
commit 9ed6b7dd1d

View file

@ -1,7 +1,5 @@
{
servers {
metrics
}
metrics
admin 0.0.0.0:2019
}