Learn about Centmin Mod LEMP Stack today
Register Now

Avoid Cloudflare ip's to get limited from default Centminmod installation

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, Feb 28, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    3,117
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    11:33 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    On default Centminmod installation i can see this:

    Code:
    limit_req_zone $binary_remote_addr zone=xwplogin:16m rate=40r/m;
    If i use Cloudflare i can see that i have this to enable:

    Code:
    include /usr/local/nginx/conf/cloudflare.conf;
    but there is no info related to avoid blocking cloudflare ip's from the above limit ?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,426
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    6:33 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    cloudflare won't get rate limited as cloudflare.conf include is meant to forward the visitor real ip to nginx so all that nginx sees is real visitor ip and not cloudflare's ip.
     
    • Informative Informative x 1
..