CDN Setup Guide
How to connect your CDN provider account to Castovia for accelerated content delivery.
How CDN Integration Works
Castovia integrates with external CDN providers. The customer creates and pays for their own CDN account. Castovia stores the CDN credentials encrypted, tests the connection, and routes playback through the CDN when active and healthy. If the CDN becomes unavailable, Castovia can fall back to the origin server.
Bunny CDN — First Fully Supported Provider
- 1Create a Bunny CDN account at bunny.net.
- 2Create a Pull Zone pointing to your origin server (provider node).
- 3Copy your Bunny CDN API Key from the account settings.
- 4In Castovia admin → CDN, add a new CDN provider and select Bunny CDN.
- 5Enter your API Key, Pull Zone ID/name, and CDN hostname.
- 6Castovia stores the API key encrypted. It is never exposed in API responses.
- 7Click "Test Connection" — Castovia verifies the Pull Zone is reachable.
- 8When active and healthy, Castovia routes playback URLs through the CDN.
- 9If CDN health check fails, Castovia falls back to origin (when configured).
Cloudflare — Prepared Integration
Cloudflare integration is customer-specific and requires:
- \u2022 Cloudflare account with API token or Global API Key
- \u2022 Configured zone/domain
- \u2022 Specific setup varies by Cloudflare plan (Free, Pro, Enterprise)
Castovia provides a prepared integration skeleton. Setup is configured per customer during onboarding.
Other CDN Providers
Castovia\u2019s CDN framework supports multiple providers (KeyCDN, StackPath, Fastly, Akamai). Provider-specific setup is configured during onboarding based on the customer\u2019s chosen CDN vendor.
Costs
CDN vendor costs are separate. The customer pays the CDN vendor directly for bandwidth usage.
Bunny CDN uses usage-based pricing (typically per-GB bandwidth). Pricing depends on the vendor\u2019s terms.
Castovia does not include CDN bandwidth in plan pricing by default.
A managed Castovia CDN add-on may be offered as a future paid service \u2014 it is not included by default.