Public | Automated Build

Last pushed: 2 years ago
Short Description
Fetches CloudFlare's IPs and creates a nginx config file for restoring the original visitor.
Full Description


Cloduflare-Nginx-UpdateIPs collects all of CloudFlare's IPs and formats them so that nginx understands them and can restore the original visitor's ip. You should run this script periodically so that nginx is up-to-date with CloudFlare's IPs and your server logs won't miss the real visitor's IP address.

How to use it

Just run

docker run --rm matt3o12/cloudflare-nginx-updateips > nginx_config_path/conf.d/cloudflare.conf

and replace nginx_config_path with nginx's config path. Nginx should restore the visitor's ip after loading it.

Docker Pull Command

Comments (0)