Want more timely Centmin Mod News Updates?
Become a Member

Beta Branch enable nginx brotli module on Intel Skylake & newer cpus in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 4, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    3:58 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    enable nginx brotli module on Intel Skylake & newer cpus in 123.09beta01

    Auto enable nginx brotli module if Intel Skylake or newer cpus exist newer cpus allow brotli compressed nginx files to be served faster Beta Branch - Testing GCC 8 & Clang 5/6/7 compiler for Centmin Mod Nginx & PHP-FPM. Using cpu avx512 flag as an indicator of whether Intel Skylake or newer cpu is detected. When detected, Centmin Mod initial install routine will automatically enable Nginx brotli module as a dynamic Nginx module and via NGINX_BROTLIDEP_UPDATE='y', automatically modify Nginx brotli module to use the latest tagged version of Google Brotli rather than the version included in Nginx brotli module as that version lags behind the versions available for Google Brotli.

    The 3 variables enabled when avx512 cpu flag is detected are
    Code (Text):
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    NGINX_BROTLIDEP_UPDATE='y'
    

    These variables can still be overriden on subsequent nginx recompiles or if set before initial install via the persistent config file /etc/centminmod/custom_config.inc

    Code (Text):
    brotli --version
    brotli 1.0.7
    

    Continue reading...


    123.09beta01 branch