Limit the size of logs more severly
All checks were successful
/ build (push) Successful in 31s
/ Ansible Lint (push) Successful in 3m47s

The goal is to:
* limit the amount of  (potentially) PII data by limiting retention time
* make sure the disk doesn't fill up with log data
* make it easier to look at logs on the system without having to wade through many old entries
This commit is contained in:
Stefan Bethke 2026-11-01 22:44:38 +01:00 • committed by chris
commit 04f2b1d25c
2 changed files with 5 additions and 7 deletions

View file

@ -18,8 +18,3 @@ services:
restart: unless-stopped
volumes:
- ./configs:/configs
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"

View file

@ -1,5 +1,8 @@
[Journal]
MaxFileSec=2day
MaxRetentionSec=2week
SystemMaxUse=1G
SystemMaxFileSize=10M
RuntimeMaxFileSize=10M
MaxFileSec=4h
MaxRetentionSec=8day
ForwardToSyslog=no