Log-Rotation fuer Apache-, PHP- und XAseco-Logs eingerichtet

This commit is contained in:
2026-03-23 22:14:38 +01:00
parent 7710a032d9
commit cbb918d6b2
7 changed files with 115 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
# ============================================================
# 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
}
# AdminServ-Logs (liegen im persistenten Volume)
/var/www/html/logs/*.log
{
size 10M
rotate 5
missingok
notifempty
compress
delaycompress
copytruncate
}