From 9ed6b7dd1d0c5ebb8dfe06253835bc6283805aca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Sun, 7 Jun 2026 08:30:17 +0200 Subject: [PATCH] fix(infra): move Caddy metrics to global option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- infrastructure/Caddyfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/infrastructure/Caddyfile b/infrastructure/Caddyfile index d302763..9282f65 100644 --- a/infrastructure/Caddyfile +++ b/infrastructure/Caddyfile @@ -1,7 +1,5 @@ { - servers { - metrics - } + metrics admin 0.0.0.0:2019 }