SlickStack support for cloudflare.conf Nginx “real IPs”
- This topic is empty.
-
AuthorPosts
-
JackGuest
Hi,
so does SlickStack support cloudflare.conf Nginx module same like WordOps
RobertGuestis this Github issue resolved or pending action??
JonathanGuestYes 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;
SaraGuestThis 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/
PhilipGuestIt is your responsibility (currently) to ensure cloudflare.conf is properly formatted because SlickStack will not validate the syntax for you
PatrickGuestwhat is the purpose of cloudflare.conf ????
RyanGuestFor 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
DavidGuestHere is the install script for it (coming soon):
https://github.com/littlebizzy/slickstack/blob/master/bash/ss-install-nginx-cloudflare-ips.txt
AmyGuestwhat 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.
MaryGuestMariaGuestBOOM 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…StephanieGuestp.s. Some more discussion on this on our Discord server
BillyGuestI was waiting this a while, thanks guys—
-
AuthorPosts