/var/volatile/log/nginx/*.log{
  rotate 7
  maxsize 3M
  missingok
  compress
  delaycompress
  notifempty
  create 664 root root
  sharedscripts
  postrotate
    /usr/bin/pkill -USR1 nginx 2> /dev/null || true
  endscript
}