IntegrateCDN
Bunny.net in front of Olympus
Affordable CDN with edge rules
Bunny.net is a cost-effective CDN. Useful for small-mid Olympus deployments wanting CDN benefits without enterprise pricing.
Architecture
User → Bunny edge → Caddy on origin → OlympusSetup
Pull Zone
Bunny dashboard → Pull Zones → add a zone:
- Origin URL:
https://your-caddy-host - Hostname:
ciam.example.com(custom hostname)
Bunny issues a free Let's Encrypt cert for your custom hostname.
Edge rules
For auth-sensitive paths, set "Override Cache Time = 0":
URL contains: /oauth2/, /login, /registration, /recovery, /consent, /logout
Action: Override Cache Time → 0For static assets:
URL contains: /_next/static/
Action: Override Cache Time → 1 yearReal IP
Bunny adds X-Forwarded-For and CF-Connecting-IP (yes, also called CF). Trust in Caddy.
Cost
- $0.01-0.06/GB (region-dependent).
- $1/month per zone minimum.
A typical 1k-MAU Olympus deployment costs <$5/month for Bunny on top.
When to use
- Small or hobby deployments where CloudFront / Fastly cost is too high.
- You want edge caching without complex rules.
Caveats
- Bunny doesn't have a built-in WAF as sophisticated as Cloudflare or AWS.
- Smaller PoP footprint than Cloudflare.
For DDoS-prone deployments, Cloudflare is safer; for cost-optimized, Bunny is competitive.