fix:#52 added log rotation and anonymized

This commit is contained in:
Elmar Kresse
2024-09-29 23:33:45 +02:00
parent 5ce70983f2
commit f3bfe603b3
5 changed files with 29 additions and 4 deletions

14
frontend/nginx-logrotate Normal file
View 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
}