update caddy config to save logs to file

This commit is contained in:
2025-11-19 23:06:28 +00:00
parent eca500ff9f
commit e0d86e37cc
2 changed files with 6 additions and 0 deletions

View File

@@ -3,6 +3,11 @@
metrics { metrics {
per_host per_host
} }
log {
output file /var/log/caddy/access.log
format json
level DEBUG
}
} }
:2019 { :2019 {

View File

@@ -23,6 +23,7 @@ services:
- ./ssl:/etc/ssl/custom/ - ./ssl:/etc/ssl/custom/
- ./data/data:/data - ./data/data:/data
- ./data/config:/config - ./data/config:/config
- ./data/log:/var/log/caddy
- ../private_volume:/private_volume - ../private_volume:/private_volume
env_file: env_file:
- ./.env - ./.env