# /etc/logrotate.d/mediaproof — keeps web-server access logs (which contain IPs)
# for the period quoted in the Data Retention Policy (RETENTION_SERVER_LOGS_DAYS).
/var/log/nginx/*.log /var/www/mediaproof/storage/logs/*.log {
    daily
    rotate 30
    maxage 30
    missingok
    notifempty
    compress
    delaycompress
    sharedscripts
    postrotate
        [ -s /run/nginx.pid ] && kill -USR1 `cat /run/nginx.pid`
    endscript
}
