Skip to content

K3CAN/sync-cf-ips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This script will download the current IPv4 addresses used by cloudflare and create/update NGINX's "real_ip" configuration so that the source IPs are recorded correctly in the log.

It assumes you're using NGINX's config.d, and creates or replaces a "real_ips.conf" file into that directory.

This is intended to ensure that nginx correctly logs the originating IP when incoming connections are proxied through cloudflare proxy service.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Languages