/var/log/openresty/*log {
    create 0644 openresty openresty
    daily
    rotate 10
    missingok
    notifempty
    compress
    sharedscripts
    postrotate
        /etc/init.d/openresty reopen_logs
    endscript
}

