CDNFoundry is an open-source, self-hosted CDN and authoritative DNS platform. Run it on your own servers to deliver content closer to your visitors. Authoritative DNS, HTTPS delivery, certificates, cache, and logs stay on infrastructure you control. It is for ISPs, hosting providers, enterprises, and anyone who must keep traffic and data on their own network.
| Tool | What it is for |
|---|---|
| Admin panel | Run the platform: pools, PoPs, DNS, users, settings, audit, and removal of retired edges |
| Domain panel | Customers manage their domains: DNS, origins, TLS, cache, security, analytics |
| API | Automate domain and platform operations with policy-scoped tokens |
| Fleet CLI and Fleet web | Install, upgrade, back up, and roll back hosts over SSH, from the command line or a local web page |
| Grafana | Dashboards in role-based folders for operations, security, support, and business, with alerts and runbooks |
| DNS and edge runtime | DNSdist and PowerDNS for DNS, and bounded OpenResty cells for HTTP and HTTPS, with cache, purge, WAF, and compression |
- DNS: authoritative records, imports and exports, and Geo-DNS answers.
- HTTPS: managed ACME DNS-01 and uploaded certificates, renewal, and edge distribution.
- Cache: domain policies, development mode, URL and full purges, gzip and Brotli.
- Request rules: redirects, URL rewrites, request and response header changes, and cache overrides with presets.
- Security: typed firewall rules, managed ModSecurity/OWASP CRS WAF, rate and connection limits, browser challenges, and incident controls. Challenge verification works on GET-only domains.
- Geolocation: signed IPFire country and ASN data refreshed daily, with custom MMDB sources supported.
- Visibility: domain analytics, redacted logs, revision acknowledgements, and operation status.
Application controls have resource limits. Protect the uplink through your network provider when an attack exceeds its capacity. See the security guide.
Open a domain to review its DNS, origin, TLS, cache, and security settings.
Explore the admin panel and domain panel tours. The documentation site shows real captures in light and dark themes with generated test data.
flowchart LR
Operator["Panels or API"] --> Control["Laravel control plane"]
Control --> State[("PostgreSQL desired state")]
Control --> Workers["Background workers"]
Workers --> DNS["Private PowerDNS"]
Workers --> Agent["Edge agents"] --> Cells["OpenResty cells"]
Resolver["DNS resolver"] --> DNSdist["Public DNSdist"] --> DNS
Visitor["HTTP or HTTPS visitor"] --> Gateway["Edge gateway"] --> Cells
Cells --> Origin["Validated origin"]
Cells -.-> Vector["Vector"] --> Analytics[("ClickHouse")]
DNSdist -.-> Vector
A CDN caches content at points of presence (PoPs) while your origin hosts the application. The control plane stores desired state and publishes validated revisions asynchronously. DNS and HTTP traffic use local runtime state and keep serving through a control-plane outage. An invalid replacement keeps the last valid configuration active. Fleet maintains infrastructure; domains and traffic policy stay in the panels and API.
Read the four flows for the DNS, HTTP, configuration, and telemetry paths.
| You want | Servers | Start here |
|---|---|---|
| To try it | 1 machine with Docker | Installation |
| A first real CDN | 3: one control node and two PoPs | Production quick start |
| More regions and traffic | 3 to about 10, added one at a time | Scaling |
| A control plane that survives a lost host | Any layout plus a standby | High availability |
| A large or multi-region network | 15 or more | Multi-region quick start |
There is no single-server production install. See Choose your installation for all options, including installing by hand without Fleet. Before sending customer traffic, qualify your own fleet and practice backup and recovery. Use the hardware requirements as a starting point, then measure your own workload.
Fleet web is a local page that installs and manages your hosts. It runs on your own computer (Windows, macOS, or Linux). Install Git, OpenSSH, and Python first (Python 3.12 or higher is recommended).
git clone https://github.com/vaheed/CDNFoundry.git cd CDNFoundry python3 scripts/fleet-web.py # Windows: py scripts\fleet-web.py
The first run creates a private Python environment and installs what Fleet needs, then
opens http://127.0.0.1:8765 in your browser. Everything else happens in the browser: the
page asks you to choose the vault passphrase, enter your domains, release, and hosts, and it
lets you review the plan and deploy a signed release with digest-pinned images. On later runs it asks for the passphrase to unlock. Use --port 9000 to pick another port. Fleet web listens on your own machine only; to
use it on a remote workstation, open an SSH tunnel.
Fleet restores edge runtime keys into memory before Docker starts after a host reboot. To install boot
recovery on an existing fleet and start stopped containers from its current release, update this checkout
and run python3 scripts/cdnfoundry-fleet recover with your existing vault. See
Fleet recovery for requirements and checks.
Run the script from the repository root, or by its full path. Do not run files inside
scripts/cdnfoundry_fleet/ directly: they are a Python package, not scripts.
Next: Production quick start and the Fleet web guide.
This release fixes browser verification on GET-only domains, including Under Attack mode. It also adds daily signed IPFire location updates, live GeoIP database refreshes, and administrator removal of disabled, drained edges. There are no new database migrations since 2.1.4. Review the 2.1.5 release notes for deployment, rollback, and qualification limits.
The documentation is organized by what you want to do.
-
New here? What is in CDNFoundry and Your path through the docs.
-
Installing? Production guide.
-
Using a domain? Domain panel tour.
-
Running the platform? Admin panel tour, Fleet web guide, Grafana by team.
-
Something broke? Troubleshoot by symptom and the alert reference.
-
Changing request behavior? Request rules: redirects, rewrites, headers, and cache rules.
-
Automating or developing? API reference, developer setup, and testing.
Version-specific compatibility belongs in the upgrade guide and release notes.
Found a bug or have a question? Open an issue. Include reproducible steps and sanitized diagnostics.
To change the code, read AGENTS.md and CONTRIBUTING.md first. Report security problems as described in SECURITY.md. Follow the code of conduct.
CDNFoundry is licensed under Apache-2.0.
Help keep CDNFoundry independent, open source, and actively maintained.
| Sponsorship tier | Description | Amount |
|---|---|---|
| Buy Me a Beer | Show your appreciation. | $10 |
| Support Development | Support ongoing updates and maintenance. | $100 |
| Sponsor a Feature | Propose and fund a new feature. | $1,000 |
Feature sponsorship is subject to technical review and roadmap alignment.
