Get the most out of your Centmin Mod LEMP stack
Become a Member

Cloudflare???

Discussion in 'Install & Upgrades or Pre-Install Questions' started by anthony parsons, Jul 10, 2018.

  1. anthony parsons

    anthony parsons Premium Member Premium Member

    46
    12
    8
    Feb 12, 2017
    Ratings:
    +15
    Local Time:
    6:37 AM
    Current yum stable
    10.1
    A little confused about the Cloudflare requirements. Is Cloudflare IP's automatically setup with the latest install, or does it require manual intervention?

    And the real ip module, if reading correctly, is default installed and no action is required by me.
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,099
    7,748
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,948
    Local Time:
    6:37 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    For my Centmin Mod Nginx users I wrote a specific guide for them including a script to auto generate the latest Cloudflare IPs for the configuration at Nginx Cloudflare & Incapsula (reverse proxy HttpRealIpModule) - CentminMod.com LEMP Nginx web stack for CentOS

    If using Centmin Mod 123.09beta01 or newer branches, the generated Nginx vhost already have setup automated script to pull latest Cloudflare IPs for CSF Firewall whitelisting outlined here. The generated Nginx vhost will have an include file /usr/local/nginx/conf/cloudflare.conf that is prepopulated with Cloudflare IPs pulled in via a cronjob you manually setup as outlined here.
    Code (Text):
      # uncomment cloudflare.conf include if using cloudflare for
      # server and/or vhost site
      include /usr/local/nginx/conf/cloudflare.conf;
    

    cronjob you manually setup once only setup
    Code (Text):
    23 */36 * * * /usr/local/src/centminmod/tools/csfcf.sh auto >/dev/null 2>&1
    
     
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    35,099
    7,748
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,948
    Local Time:
    6:37 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yup Centmin Mod default installed Nginx config takes care of that part
     
    • Like Like x 1
..