Files
htwkalender/frontend/nginx-logrotate
2024-09-29 23:33:45 +02:00

14 lines
393 B
Plaintext

/opt/bitnami/nginx/logs/proxy_*.log {
rotate 5
daily
notifempty
compress
delaycompress
create 0640 root root
sharedscripts
postrotate
# Reload NGINX to reopen the log files after rotation
[ -f /opt/bitnami/nginx/tmp/nginx.pid ] && kill -USR1 `cat /opt/bitnami/nginx/tmp/nginx.pid`
endscript
}