This is an automated archive made by the Lemmit Bot.

The original was posted on /r/selfhosted by /u/fab_space on 2024-09-26 09:19:41+00:00.


Cloudflare Zones Settings Automation

Hello flared users :)

For those who match use cases like:

  • not using terraform
  • using dnscontrol then still no terraform
  • hate terraform or dont want to use it to manage cloudflare resources

… but still want a simple way to manage zone settings for multiple domains/zones…

I built a simple project to let you automatically manage and deploy zone settings across multiple zones by using GitHub Actions (or any other CI/CD capable tool) named Flared:

Core Features

  • Multi-Domain Support: Manage multiple Cloudflare zones/domains from a single configuration file.
  • Default Configurations: Define default settings that apply to all zones, with the ability to override them for specific domains.
  • Customization: Tailor settings like SSL/TLS versions, HTTP/3, Rocket Loader, Brotli compression, caching, and more.
  • Free Plan Compatible: Out-of-the-box support for Cloudflare’s free plan settings.

Automation and Security

  • API Token Security: Securely handle Cloudflare API tokens via GitHub Secrets.
  • Automation: Integrate with GitHub Actions or CI/CD tools for recurring updates.
  • Error Handling & Logging: Comprehensive logging and robust error handling, ensuring unsupported configurations are skipped without breaking the workflow.
  • Version Control: Automatically push updates to your repository for easy configuration tracking.

Let me know if you find it useful and, as usual, all contributions are welcome!