Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch disable NGINX_HPACK='n' with nginx 1.13.9

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 14, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    45,970
    10,442
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,203
    Local Time:
    9:28 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  2. JJC84

    JJC84 Ad astra per aspera Premium Member

    247
    109
    43
    Jan 31, 2018
    San Antonio, Texas
    Ratings:
    +169
    Local Time:
    5:28 PM
    1.15.x
    10.x.x
    Appreciate the heads up!
     
  3. eva2000

    eva2000 Administrator Staff Member

    45,970
    10,442
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,203
    Local Time:
    9:28 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  4. pamamolf

    pamamolf Premium Member Premium Member

    3,902
    390
    83
    May 31, 2014
    Ratings:
    +757
    Local Time:
    1:28 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    iirc Cloudflare users should auto get that and no need to compile it on the server as they do the same with Brotli :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    45,970
    10,442
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,203
    Local Time:
    9:28 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    both ngx_brotli and cloudflare hpack have their own variables to set in persistent config file /etc/centminmod/custom_config.inc
    Code (Text):
    NGINX_HPACK='y'
    NGXDYNAMIC_BROTLI=y
    NGINX_LIBBROTLI=y
    


    not enabled by default as they can break on new nginx releases so best to only make it optional for folks willing to deal with and troubleshoot/report such issues.
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    3,902
    390
    83
    May 31, 2014
    Ratings:
    +757
    Local Time:
    1:28 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    What i mean is if you use Cloudflare there is an option at cloudflare panel to enable it and get Brotli without doing anything on the server and when i check using Chrome's dev tool i am able to see there the br :)

    But i am not 100% sure that it is auto automated for Hpack....
     
  7. eva2000

    eva2000 Administrator Staff Member

    45,970
    10,442
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,203
    Local Time:
    9:28 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    oh you meant Cloudflare's feature offering yes they have enable Brotli button and out of box they offer HTTP/2 HPACK Full Encoding support as users don't need to enable it. Proper HTTP/2 implementation should use HPACK Full Encoding i.e. caddy and h2o and I believe openlitespeed/lietspeed do. But nginx only offers partial HPACK Encoding support hence why Centmin Mod uses Cloudflare's provided patch to add HPACK Full Encoding support to match other web servers' and Cloudflare's HTTP/2 implementation :D