/var/log/nginx/*.log {
        size 10M
	dateformat .%Y-%m-%d-%s
	compress
        missingok
        rotate 10
        notifempty
        create 640 root adm
        sharedscripts
        postrotate
                [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`
        endscript
}

