/var/log/nginx/*log {
missingok
notifempty
create 640 http log
su http log
sharedscripts
compress
postrotate
test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid`
endscript
}