Discover Centmin Mod today
Register Now

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

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yes Cloudflare Origin certs are untrusted certs outside of Cloudflare communication :)
     
  2. rdan

    rdan Premium Member Premium Member

    4,369
    1,053
    113
    May 25, 2014
    Ratings:
    +1,524
    Local Time:
    8:48 PM
    Mainline
    10.2
    I think this is the right way to inspect cf to/from our server.
     
  3. rdan

    rdan Premium Member Premium Member

    4,369
    1,053
    113
    May 25, 2014
    Ratings:
    +1,524
    Local Time:
    8:48 PM
    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

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    doesn't really matter if used = good, if not = no harm
     
  5. rdan

    rdan Premium Member Premium Member

    4,369
    1,053
    113
    May 25, 2014
    Ratings:
    +1,524
    Local Time:
    8:48 PM
    Mainline
    10.2
    Additional Disk Space ;).
     
  6. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    that's what proper disk spec/allocation decisions are for, so it doesn't become an issue :)
     
  7. bassie

    bassie Well-Known Member

    1,017
    243
    63
    Apr 29, 2016
    Ratings:
    +722
    Local Time:
    1:48 PM
    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

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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:
    4:48 AM
    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

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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
     
    • Like Like x 1
  11. MaxFein

    MaxFein New Member

    14
    2
    3
    Jul 9, 2018
    Ratings:
    +5
    Local Time:
    4:48 AM
    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
     
    • Informative Informative x 1
  12. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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

    260
    26
    28
    Apr 11, 2015
    Ratings:
    +59
    Local Time:
    2:48 PM
    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

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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

    260
    26
    28
    Apr 11, 2015
    Ratings:
    +59
    Local Time:
    2:48 PM
    1.9.10
    10.1.11
    Need that even cloudflare using in front too ?
     
  16. eva2000

    eva2000 Administrator Staff Member

    36,915
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    10:48 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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

    260
    26
    28
    Apr 11, 2015
    Ratings:
    +59
    Local Time:
    2:48 PM
    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
     
..