Want more timely Centmin Mod News Updates?
Become a Member

Featured Nginx How to use Brotli compression for Centmin Mod Nginx web servers

Discussion in 'Centmin Mod User Tutorials & Guides' started by eva2000, Mar 6, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yes Cloudflare Origin certs are untrusted certs outside of Cloudflare communication :)

     
  2. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    9:59 AM
    Mainline
    10.2
    I think this is the right way to inspect cf to/from our server.
     
  3. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    9:59 AM
    Mainline
    10.2
    What concerns me now, Is Cloudflare using this pre compiled/generated .br & .gz files?
    I hope it still useful behind CLoudflare.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    doesn't really matter if used = good, if not = no harm
     
  5. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    9:59 AM
    Mainline
    10.2
    Additional Disk Space ;).
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that's what proper disk spec/allocation decisions are for, so it doesn't become an issue :)
     
  7. buik

    buik “The best traveler is one without a camera.”

    2,023
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,672
    Local Time:
    2:59 AM
    Can't reply in the above topic, so hereby.
    Thanks. regrettable it is a benchmark about Cloudflare's services.

    I thought this is a Centminmod forum, so expected one benchmark of Centminmod's compiled Cloudflare zlib v.s. Centminmod Nginx Brotli.:)
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Already did those benchmarks for Cloudflare zlib vs Brotli for Centmin Mod Nginx and Zlib wins by a country mile Nginx - Nginx with Cloudflare zlib fork VS nxg_brotli compression level tests
     
  9. MaxFein

    MaxFein New Member

    14
    2
    3
    Jul 9, 2018
    Ratings:
    +5
    Local Time:
    5:59 PM
    https://centmin.sh/ -->

    Error 1014 Ray ID: 43f0d5b74a4abb18 • 2018-07-23 20:18:11 UTC
    CNAME Cross-User Banned
     
  10. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah centmin.sh uses centminmod.com CNAME flattened entry for origin and centminmod.com move to cloudflare blocks that.. so need to change to using IP origin instead
     
  11. MaxFein

    MaxFein New Member

    14
    2
    3
    Jul 9, 2018
    Ratings:
    +5
    Local Time:
    5:59 PM
    yeah, I used to configure like this too... it was awesome... sad that it is changed...

    have seen some references that if target domain is using a paid CF plan then it is possible to contact CF support and request that they allow incoming CNAME from other accounts... also, have seen some anecdotal reports that CNAME flattening may still work if you deactivate CF for that record (no orange cloud)... this would be nice, need to test it myself but its been awhile since I was using CF heavily... back into the fray now though ;)

    Cheers, Max
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just updated to IP origin with 3x VPSes in my cluster for round robin so that should be fine :D
     
  13. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    3:59 AM
    1.9.10
    10.1.11
    @eva2000 If i use cloudflare pro plan and Brotli enabled, should we add the brotli support on nginx too ?

    Encoding looks BR
    Code (Text):
    MacBook-Pro:~ $ curl -sI -H "Accept-Encoding: gzip,br" https://www.domain.com
    HTTP/2 200
    date: Thu, 25 Oct 2018 13:25:25 GMT
    content-type: text/html; charset=UTF-8
    vary: Accept-Encoding
    cache-control: no-cache
    x-powered-by: nginx
    x-fastcgi-cache: HIT
    strict-transport-security: max-age=15552000; includeSubDomains; preload
    x-content-type-options: nosniff
    expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    server: cloudflare
    cf-ray: 46f50251dada72f5-AMS
    content-encoding: br
    


    But i didn't understand exactly the CLOUDFLARE ZLIB option enable on centminmod ?
     
    Last edited: Oct 25, 2018
  14. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    With cloudflare in front, ngx_brotli not needed.

    it's better performing version of nginx zlib/gzip up to 40% better
     
  15. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    3:59 AM
    1.9.10
    10.1.11
    Need that even cloudflare using in front too ?
     
  16. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    no you don't but centmin mod 123.09beta01 defaults to cloudflare zlib usage and can't be disabled completely as nginx needs zlib itself in some form or another.
     
  17. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    3:59 AM
    1.9.10
    10.1.11
    Okay than anyway i added the cloudflare zlip configuration to centminmod configuration and i go upgrade the php soon. Thanks
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  19. rdan

    rdan Well-Known Member

    5,443
    1,402
    113
    May 25, 2014
    Ratings:
    +2,194
    Local Time:
    9:59 AM
    Mainline
    10.2
  20. eva2000

    eva2000 Administrator Staff Member

    54,065
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    11:59 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+