GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vaheed/CDNFoundry: Self-hosted private CDN and authoritative DNS platform for ISPs and hosting providers, built with PowerDNS, DNSdist, OpenResty, Laravel, and Go.

BranchesTags
Open more actions menu

Latest commit

 

History

1,332 Commits
1,332 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills
.agents/skills
 
 
.claude
.claude
 
 
.codegraph
.codegraph
 
 
.github
.github
 
 
.vscode
.vscode
 
 
core
core
 
 
deploy/production
deploy/production
 
 
docker
docker
 
 
docs
docs
 
 
edge-agent
edge-agent
 
 
edge-gateway
edge-gateway
 
 
scripts
scripts
 
 
supply-chain
supply-chain
 
 
tests
tests
 
 
.env.dev.example
.env.dev.example
 
 
.env.prod.example
.env.prod.example
 
 
.gitignore
.gitignore
 
 
.mcp.json
.mcp.json
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
SUPPORT.md
SUPPORT.md
 
 
VERSION
VERSION
 
 
compose.browser.yml
compose.browser.yml
 
 
compose.dev.yml
compose.dev.yml
 
 
compose.prod.yml
compose.prod.yml
 
 
compose.test.yml
compose.test.yml
 
 
docker-bake.hcl
docker-bake.hcl
 
 

Repository files navigation

CDNFoundry

CI Latest release License: Apache-2.0 PHP 8.3+ Go 1.24+ Documentation website

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.

What you get

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

Delivery features

  • 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.

See the product

Open a domain to review its DNS, origin, TLS, cache, and security settings.

An open domain with its status and configuration sections in the domain panel, using seeded test data.

Explore the admin panel and domain panel tours. The documentation site shows real captures in light and dark themes with generated test data.

How it works

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
Loading

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.

Pick your setup

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.

Install with Fleet web

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.

Release 2.1.5

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.

Read the docs

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.

Report a bug or contribute

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.

License

CDNFoundry is licensed under Apache-2.0.

Support CDNFoundry

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.

About

Self-hosted private CDN and authoritative DNS platform for ISPs and hosting providers, built with PowerDNS, DNSdist, OpenResty, Laravel, and Go.

vaheed.github.io/CDNFoundry/

Topics

cdncontent-delivery-networkdevopsdnsdistopenresty-luapowerdns-authoritative-serverprivate-cdnself-hostedweb-application-firewall

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

14 stars

Watchers

0 watching

Forks

5 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.