/var/log/nginx/*.log {
    su root nginx
    daily
    missingok
    rotate 7
    compress
    delaycompress
    notifempty
    create 640 root nginx
    sharedscripts
    postrotate
        [ -f /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
    endscript
}
