close

April 2024 only! Join our Discord free of charge.

Slick­Stack
Lightning-fast WordPress on Nginx

SlickStack support for cloudflare.conf Nginx “real IPs”

  • This topic is empty.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #5520 Reply
    Jack
    Guest

    Hi,

    so does SlickStack support cloudflare.conf Nginx module same like WordOps

    #5521 Reply
    Jordan
    Guest
    #5522 Reply
    Robert
    Guest

    is this Github issue resolved or pending action??

    https://github.com/littlebizzy/slickstack/issues/198

    #5523 Reply
    Jonathan
    Guest

    Yes the feature is now supported see the end of the linked GitHub issue it says:

    We've copied over /etc/nginx/conf.d/cloudflare.conf to /var/www/sites/includes/cloudflare.conf if that file exists on all SlickStack servers.
    
    The following line is now added to nginx.conf in SlickStack:
    
    include /var/www/sites/includes/cloudflare[.]conf;
    #5524 Reply
    Sara
    Guest

    This means that you shouldn’t add cloudflare.conf under /etc/nginx/conf.d/ directory anymore because SlickStack will auto-delete. Instead put that file under the new directory structure which is /var/www/sites/includes/

    #5525 Reply
    Philip
    Guest

    It is your responsibility (currently) to ensure cloudflare.conf is properly formatted because SlickStack will not validate the syntax for you

    #5542 Reply
    Patrick
    Guest

    what is the purpose of cloudflare.conf ????

    #7190 Reply
    Ryan
    Guest

    For those interested, SlickStack will soon have our own cloudflare.conf that is pre-formatted for everyone to use, and can be installed automatically:

    https://github.com/littlebizzy/slickstack/blob/master/modules/nginx/includes/cloudflare-conf.txt

    #7191 Reply
    David
    Guest
    #7192 Reply
    Amy
    Guest

    what is the purpose of cloudflare.conf ????

    It ensures that your origin server, security/analytics software etc can see the “real” IP address of users or bots visiting your website, instead of just the Cloudflare IP addresses… some devs use this for better stats or filtering etc.

    #7193 Reply
    Mary
    Guest
    #7226 Reply
    Maria
    Guest

    BOOM this is now 100% working in SlickStack, and the IP ranges are auto-updated using SlickStack’s built in cron job schedule…

    NGINX_CLOUDFLARE_IPS="true"

    Just make sure your ss-config has this line set to true

    And that’s it. Or you can manually run ss install nginx cloudflare ips if you want to install/update the cloudflare.conf manually. Or just reinstall SlickStack will also accomplish this also…

    #7227 Reply
    Stephanie
    Guest

    p.s. Some more discussion on this on our Discord server

    #8070 Reply
    Billy
    Guest

    I was waiting this a while, thanks guys—

Viewing 14 posts - 1 through 14 (of 14 total)
Reply To: SlickStack support for cloudflare.conf Nginx “real IPs”

Thanks to our generous sponsors for their support!