# When nginx is stopped by systemd, add logs for troubleshooting
/var/log/nginx/*.log
{
    create 0640 nginx nginx
    compress
    dateext
    maxage 60
    rotate 30
    size=+10M
    sharedscripts
    postrotate
        /bin/kill -USR1 `cat /var/run/nginx.pid 2>/dev/null` 2>/dev/null || true
    endscript
}
