Files
tmserver-docker/assets/config/logrotate.conf
T
Patrick Asmus 9f8f0f00d6 fix(php8): RemoteCP-Log-Rauschen reduzieren und errors.log rotieren
Unter PHP 8 sind viele fruehere Notices (Undefined array key, Attempt to
read property ...) Warnings. Der RemoteCP-Errorhandler ignoriert diese
ohne Debug-Modus wie bisher unter PHP 7; im Test wuchs errors.log sonst
um rund 500 KB in 15 Minuten. Zusaetzlich rotiere ich remotecp/cache/*.log
per logrotate (10 MB, 5 Dateien).
2026-11-01 13:51:55 +01:00

70 lines
1.3 KiB
Plaintext

# ============================================================
# Log-Rotation fuer tmserver-docker
# ============================================================
# Wird stuendlich per Background-Loop ausgefuehrt.
# Rotation: groessenbasiert (10 MB), max. 5 rotierte Dateien.
# ============================================================
# Apache Access- und Error-Log
/var/log/apache2/access.log
/var/log/apache2/error.log
{
size 10M
rotate 5
missingok
notifempty
compress
delaycompress
copytruncate
}
# PHP Error-Log
/var/log/php_errors.log
{
size 10M
rotate 5
missingok
notifempty
compress
delaycompress
copytruncate
}
# XAseco-Log (liegt im persistenten Volume)
/opt/tmserver/xaseco/aseco.log
{
size 10M
rotate 5
missingok
notifempty
compress
delaycompress
copytruncate
}
# RemoteCP-Logs (liegen im persistenten Volume)
/var/www/html/remotecp/cache/*.log
{
su www-data www-data
size 10M
rotate 5
missingok
notifempty
compress
delaycompress
copytruncate
}
# AdminServ-Logs (liegen im persistenten Volume)
/var/www/html/logs/*.log
{
su www-data www-data
size 10M
rotate 5
missingok
notifempty
compress
delaycompress
copytruncate
}