From 4fc2966b89dcb20dafc8a7b9f3969f8ed3b5c869 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Wed, 25 Nov 2026 14:11:00 +0100 Subject: [PATCH] An access log for tomtervel.no on kasse's Caddy The portal's own log says nothing of a request that was slow or never answered, and the host Caddy kept none for the site. Each request is now written with its duration and status, rolled at 20 MiB and kept two weeks. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01L5fbDjRr9xfrtcDzcdJNr2 --- host-caddy/tomtervel.no | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/host-caddy/tomtervel.no b/host-caddy/tomtervel.no index f75b680..92e6655 100644 --- a/host-caddy/tomtervel.no +++ b/host-caddy/tomtervel.no @@ -6,6 +6,18 @@ tomtervel.no { reverse_proxy 127.0.0.1:3050 + # Every request, with how long it took and what it was answered: + # what to read when the site was slow or a page said it could not + # reach the server. Addresses and what was asked for are in it, so + # it is kept two weeks and no longer. Caddy runs as `caddy`: + # `sudo install -d -o caddy -g caddy /var/log/caddy` once. + log { + output file /var/log/caddy/tomtervel.no.log { + roll_size 20MiB + roll_keep 5 + roll_keep_for 336h + } + } } www.tomtervel.no {