mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-08 20:57:45 +02:00
fix:#52 added log rotation and anonymized
This commit is contained in:
14
frontend/nginx-logrotate
Normal file
14
frontend/nginx-logrotate
Normal file
@@ -0,0 +1,14 @@
|
||||
/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
|
||||
}
|
Reference in New Issue
Block a user