feat(jellyfin): add logrotate instead of reducing log level (#11326)

This commit is contained in:
CanbiZ (MickLesk)
2026-01-29 13:40:32 +01:00
committed by GitHub
parent 5a5dd8ae87
commit 25ecb12060
2 changed files with 17 additions and 2 deletions

View File

@@ -39,8 +39,19 @@ EOF
$STD apt update
$STD apt install -y jellyfin
sed -i 's/"MinimumLevel": "Information"/"MinimumLevel": "Error"/g' /etc/jellyfin/logging.json
# Configure log rotation to prevent disk fill (keeps fail2ban compatibility) (PR: #1690 / Issue: #11224)
cat <<EOF >/etc/logrotate.d/jellyfin
/var/log/jellyfin/*.log {
daily
rotate 3
maxsize 100M
missingok
notifempty
compress
delaycompress
copytruncate
}
EOF
chown -R jellyfin:adm /etc/jellyfin
sleep 10
systemctl restart jellyfin