- This topic is empty.
-
AuthorPosts
-
May 21, 2023 at 9:41 pm #5520
Jack
GuestHi,
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 #5522Robert
Guestis this Github issue resolved or pending action??
May 21, 2023 at 9:44 pm #5523Jonathan
GuestYes 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 #5524Sara
GuestThis 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 #5525Philip
GuestIt 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 #5542Patrick
Guestwhat is the purpose of cloudflare.conf ????
August 7, 2023 at 10:01 am #7190Ryan
GuestFor those interested, SlickStack will soon have our own
cloudflare.confthat 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 #7191David
GuestHere 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 #7192Amy
Guestwhat 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 #7193Mary
GuestAugust 8, 2023 at 2:13 pm #7226Maria
GuestBOOM 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
trueAnd that’s it. Or you can manually run
ss install nginx cloudflare ipsif you want to install/update thecloudflare.confmanually. Or just reinstall SlickStack will also accomplish this also…August 8, 2023 at 2:13 pm #7227Stephanie
Guestp.s. Some more discussion on this on our Discord server
September 13, 2023 at 8:24 pm #8070Billy
GuestI was waiting this a while, thanks guys—
July 8, 2024 at 12:08 pm #25518 -
AuthorPosts