Learn about Centmin Mod LEMP Stack today
Register Now

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

    112
    7
    18
    Jun 17, 2018
    Ratings:
    +7
    Local Time:
    7:49 PM
    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

    45,677
    10,371
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,094
    Local Time:
    10:49 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    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

    112
    7
    18
    Jun 17, 2018
    Ratings:
    +7
    Local Time:
    7:49 PM
    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

    45,677
    10,371
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,094
    Local Time:
    10:49 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    no probs :)