littlebizzy / slickstack

Lightning-fast WordPress on Nginx
https://slickstack.io
GNU General Public License v3.0
624 stars 113 forks source link

Option to allow only Cloudflare IPs to connect to origin server #199

Closed jessuppi closed 3 months ago

jessuppi commented 1 year ago

Another related feature that's been discussed.

Ref: https://frankindev.com/2020/11/18/allow-cloudflare-only-in-nginx/

jessuppi commented 4 months ago

https://slickstack.io/forum/topic/slickstack-with-cloudflare-authenticated-origin-pull-tls-feature

jessuppi commented 3 months ago

This is now supported, via ss-install-nginx-config. The new allowed-ips.conf submodule will be installed if the option CLOUDFLARE_IPS_ONLY is set to true in your ss-config:

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

https://github.com/littlebizzy/slickstack/blob/master/bash/ss-install-nginx-config.txt