# CONFIGURED BY ANSIBLE /var/log/nginx/*log { daily missingok # switch to 1 or 0 if you absolutely sure those logs are collected alright rotate 90 compress delaycompress notifempty #create 640 nginx nginx # need to reload the daemon so it catches a new file handle sharedscripts postrotate kill -USR1 `cat /run/nginx.pid` endscript }