From ebc297190dd700957275f056678fe3dab60366c8 Mon Sep 17 00:00:00 2001 From: fuomag9 <1580624+fuomag9@users.noreply.github.com> Date: Fri, 3 Apr 2026 00:05:14 +0200 Subject: [PATCH] fix: route geo-blocker log entries to access.log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The caddy-blocker plugin already emits "request blocked" log entries for geo/IP blocks, but they were going to Caddy's default log (stdout) instead of /logs/access.log because http.handlers.blocker was not in the access log include list. The existing log parser and dashboard were already wired up to count these — they just never received the data. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/lib/caddy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/caddy.ts b/src/lib/caddy.ts index 2b865a84..0c558ff2 100644 --- a/src/lib/caddy.ts +++ b/src/lib/caddy.ts @@ -1804,7 +1804,7 @@ async function buildCaddyDocument() { loggingLogs.http_access = { writer: { output: "file", filename: "/logs/access.log", mode: "0640" }, encoder: { format: loggingFormat }, - include: ["http.log.access"] + include: ["http.log.access", "http.handlers.blocker"] }; } const loggingApp = { logging: { logs: loggingLogs } };