/var/log/nginx/*.log.gz {
    compress
    dateext
    maxage 90
    rotate 14
    size 50M
    missingok
    notifempty
    delaycompress
    compresscmd /usr/bin/recompress_gz-to-xz
    compressext .xz
    compressoptions -8
    uncompresscmd unxz
    lastaction
      # -s reopen will use the pid file passed in the config file or the compiled in default path
      /usr/sbin/nginx -s reopen
    endscript  
}
