/var/log/nginx/*/*.log /var/log/nginx/*.log { create 0640 nginx root daily rotate 6 missingok notifempty compress delaycompress sharedscripts postrotate /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true /usr/bin/find /var/log/nginx/ -type f -name "*.gz" -mtime +15 -exec rm -f {} \; > /dev/null /usr/bin/find /var/log/nginx/*/ -type f -name "*.gz" -mtime +15 -exec rm -f {} \; > /dev/null endscript }