Get the most out of your Centmin Mod LEMP stack
Become a Member

Install Enable nginx brotli module if using cloudflare ?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Mrbo, Feb 26, 2019.

  1. Mrbo

    Mrbo Member

    113
    7
    18
    Jun 17, 2018
    Ratings:
    +7
    Local Time:
    11:46 AM
    Should I set these to no if I use cloudflare brotoli in front ?

    NGINX_LIBBROTLI='y'
    NGXDYNAMIC_BROTLI='y'
    PHP_BROTLI='y'

    If yes, do I need to recompile nginx after?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    2:46 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    With cloudflare, first 2 can be disabled but if you plan on using any php apps which do brotli compression i.e. wordpress autoptimize-gzip pre-compress gzip + pre-compress brotli, then should keep all 3 enabled and set to ='y'

    yes if you change first 2, recompile nginx via centmin.sh menu option 4

    3rd variable changes, recompile php via centmin.sh menu option 5
     
  3. Mrbo

    Mrbo Member

    113
    7
    18
    Jun 17, 2018
    Ratings:
    +7
    Local Time:
    11:46 AM
    Ok, so there are no problems if I use brotoli on cloudflare and also on the server with NGINX_LIBBROTLI='y' , NGXDYNAMIC_BROTLI='y' , PHP_BROTLI='y' enabled and also Autoptimize + your Autoptimize-gzip Wordpress plugin?
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    2:46 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no probs :)