nginx-proxy-manager-zh/docker/rootfs/etc/logrotate.d/nginx-proxy-manager

28 lines
540 B
Plaintext
Raw Normal View History

2021-06-29 14:40:56 -04:00
/data/logs/*_access.log /data/logs/*/access.log {
su npm npm
create 0644
2021-05-30 14:19:05 -04:00
weekly
rotate 4
missingok
notifempty
compress
sharedscripts
postrotate
kill -USR1 `cat /run/nginx/nginx.pid 2>/dev/null` 2>/dev/null || true
2021-05-30 14:19:05 -04:00
endscript
}
2021-06-29 14:40:56 -04:00
/data/logs/*_error.log /data/logs/*/error.log {
su npm npm
create 0644
2021-05-30 14:19:05 -04:00
weekly
rotate 10
missingok
notifempty
compress
sharedscripts
postrotate
kill -USR1 `cat /run/nginx/nginx.pid 2>/dev/null` 2>/dev/null || true
2021-05-30 14:19:05 -04:00
endscript
}