/var/log/nginx/*/*.log
/var/log/nginx/*.log {
    create 0640 nginx root
    size 100M
    dateext
    dateformat -%Y%m%d-%H%M%S
    maxage 7
    # 'rotate' is only a safety cap
    rotate 1000
    missingok
    notifempty
    compress
    delaycompress
    sharedscripts
    postrotate
        /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
    endscript
}
