nginx/nginx.logrotate

15 lines
212 B
Plaintext

/var/log/nginx/*.log {
compress
dateext
maxage 365
rotate 99
size=+4096k
missingok
notifempty
create 644 root root
postrotate
/etc/init.d/nginx reopen
endscript
}