SlickStack support for cloudflare.conf Nginx “real IPs”
- This topic is empty.
-
AuthorPosts
-
May 21, 2023 at 9:41 pm #5520JackGuest
Hi,
so does SlickStack support cloudflare.conf Nginx module same like WordOps
May 21, 2023 at 9:42 pm #5521May 21, 2023 at 9:42 pm #5522RobertGuestis this Github issue resolved or pending action??
May 21, 2023 at 9:44 pm #5523JonathanGuestYes 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;
May 21, 2023 at 9:45 pm #5524SaraGuestThis 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/
May 21, 2023 at 9:45 pm #5525PhilipGuestIt is your responsibility (currently) to ensure cloudflare.conf is properly formatted because SlickStack will not validate the syntax for you
May 22, 2023 at 10:51 am #5542PatrickGuestwhat is the purpose of cloudflare.conf ????
August 7, 2023 at 10:01 am #7190RyanGuestFor 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
August 7, 2023 at 10:56 am #7191DavidGuestHere is the install script for it (coming soon):
https://github.com/littlebizzy/slickstack/blob/master/bash/ss-install-nginx-cloudflare-ips.txt
August 7, 2023 at 10:59 am #7192AmyGuestwhat 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.
August 7, 2023 at 11:01 am #7193MaryGuestAugust 8, 2023 at 2:13 pm #7226MariaGuestBOOM 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 thecloudflare.conf
manually. Or just reinstall SlickStack will also accomplish this also…August 8, 2023 at 2:13 pm #7227StephanieGuestp.s. Some more discussion on this on our Discord server
September 13, 2023 at 8:24 pm #8070BillyGuestI was waiting this a while, thanks guys—
-
AuthorPosts
- You must be logged in to reply to this topic.