From e0d86e37ccde1a872916b4db0ae09a3ff8406a06 Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Wed, 19 Nov 2025 23:06:28 +0000 Subject: [PATCH] update caddy config to save logs to file --- caddy/Caddyfile | 5 +++++ caddy/docker-compose.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index f7b857d..e0d861b 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -3,6 +3,11 @@ metrics { per_host } + log { + output file /var/log/caddy/access.log + format json + level DEBUG + } } :2019 { diff --git a/caddy/docker-compose.yml b/caddy/docker-compose.yml index ebff234..acf25ae 100644 --- a/caddy/docker-compose.yml +++ b/caddy/docker-compose.yml @@ -23,6 +23,7 @@ services: - ./ssl:/etc/ssl/custom/ - ./data/data:/data - ./data/config:/config + - ./data/log:/var/log/caddy - ../private_volume:/private_volume env_file: - ./.env