add nginx logrotate configuration

This commit is contained in:
Daniel Micay 2021-08-27 03:55:18 -04:00
parent b022108cc9
commit 48f1d5627e
1 changed files with 14 additions and 0 deletions

14
logrotate.d/nginx Normal file
View File

@ -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
}