1
0
Fork 0

Update Cloudflare examples to improve IP list as part of idempotent configuration

- Added `echo Are there some specific_headers missing?`
- These required unlocks plugin documentation consistency
This commit is contained in:
Joao Gilberto Magalhaes 2025-12-04 10:22:04 -05:00
parent b9a9bee0b9
commit e1d2cb3b59
4 changed files with 7 additions and 2 deletions

1
.gitignore vendored
View file

@ -14,3 +14,4 @@ __pycache__
/examples/swarm/certs/host2.local.pem /examples/swarm/certs/host2.local.pem
/examples/docker/jwt_private.pem /examples/docker/jwt_private.pem
/examples/docker/jwt_pubkey.pem /examples/docker/jwt_pubkey.pem
/examples/docker/cloudflare_ips.lst

View file

@ -12,6 +12,7 @@
# ```bash # ```bash
# # Download Cloudflare IP ranges (idempotent - overwrites if exists) # # Download Cloudflare IP ranges (idempotent - overwrites if exists)
# curl -s https://www.cloudflare.com/ips-v4 > cloudflare_ips.lst # curl -s https://www.cloudflare.com/ips-v4 > cloudflare_ips.lst
# echo "" >> cloudflare_ips.lst
# curl -s https://www.cloudflare.com/ips-v6 >> cloudflare_ips.lst # curl -s https://www.cloudflare.com/ips-v6 >> cloudflare_ips.lst
# #
# # Add to /etc/hosts (idempotent) # # Add to /etc/hosts (idempotent)
@ -74,5 +75,6 @@ services:
# Enable Cloudflare plugin # Enable Cloudflare plugin
easyhaproxy.http.plugins: cloudflare easyhaproxy.http.plugins: cloudflare
# Optional: Specify custom IP list path # Use custom IP list (disable built-in IPs)
# easyhaproxy.http.plugin.cloudflare.ip_list_path: /etc/haproxy/cloudflare_ips.lst easyhaproxy.http.plugin.cloudflare.use_builtin_ips: false
easyhaproxy.http.plugin.cloudflare.ip_list_path: /etc/haproxy/cloudflare_ips.lst

View file

@ -21,6 +21,7 @@
# #
# # Download Cloudflare IP ranges and create Docker config # # Download Cloudflare IP ranges and create Docker config
# curl https://www.cloudflare.com/ips-v4 > cloudflare_ips.lst # curl https://www.cloudflare.com/ips-v4 > cloudflare_ips.lst
# echo "" >> cloudflare_ips.lst
# curl https://www.cloudflare.com/ips-v6 >> cloudflare_ips.lst # curl https://www.cloudflare.com/ips-v6 >> cloudflare_ips.lst
# docker config create cloudflare_ips cloudflare_ips.lst # docker config create cloudflare_ips cloudflare_ips.lst
# rm cloudflare_ips.lst # rm cloudflare_ips.lst

View file

@ -28,6 +28,7 @@
# #
# # Download Cloudflare IP ranges and create Docker config # # Download Cloudflare IP ranges and create Docker config
# curl https://www.cloudflare.com/ips-v4 > cloudflare_ips.lst # curl https://www.cloudflare.com/ips-v4 > cloudflare_ips.lst
# echo "" >> cloudflare_ips.lst
# curl https://www.cloudflare.com/ips-v6 >> cloudflare_ips.lst # curl https://www.cloudflare.com/ips-v6 >> cloudflare_ips.lst
# docker config create cloudflare_ips cloudflare_ips.lst # docker config create cloudflare_ips cloudflare_ips.lst
# rm cloudflare_ips.lst jwt_private.pem jwt_pubkey.pem # rm cloudflare_ips.lst jwt_private.pem jwt_pubkey.pem