diff --git a/logrotate.d/nginx b/logrotate.d/nginx new file mode 100644 index 0000000..6ded4a2 --- /dev/null +++ b/logrotate.d/nginx @@ -0,0 +1,14 @@ +/var/log/nginx/*log { + missingok + notifempty + create 640 http log + sharedscripts + compress + postrotate + test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid` + endscript + daily + rotate 10 + maxage 10 + delaycompress +}