Your Domain, Your Image URLs

Serve optimised images from img.yourdomain.com with automatic SSL provisioning. Brand your URLs, maintain SEO authority, and switch providers without changing a single link.

Why Custom Domains?

🏷️

Brand Your URLs

img.acme.com/products/shoe.jpg instead of a generic CDN hostname. Professional, consistent, memorable.

📈

SEO Authority

Images served from your domain contribute to your domain's search ranking signals.

🔄

No Vendor Lock-in

Switch CDN providers behind the scenes without changing image URLs across your codebase.

🛡️

CSP Compliance

Keep all assets on approved domains — no need to whitelist third-party CDN hostnames.

Setup with Cloudflare for SaaS

Best for multi-tenant platforms where many customers each bring their own domain.

# 1. Register the custom hostname via API
POST /api/cdn/custom-hostname
{ "hostname": "img.acme.com" }

# 2. Customer adds DNS records:
#    CNAME → proxy.imgfoundry.io
#    TXT   → verification token (for SSL)

# 3. Verify — SSL auto-provisions in minutes
GET /api/cdn/custom-hostname/img.acme.com/verify
→ { "status": "active", "ssl": { "status": "active" } }

Setup with Bunny CDN

Simpler setup with free SSL certificates, typically issued within minutes.

# 1. Add custom hostname
POST /api/cdn/custom-hostname
{ "hostname": "img.acme.com" }

# 2. Customer adds CNAME:
img.acme.com → your-pullzone.b-cdn.net

# 3. SSL auto-provisions — verify:
GET /api/cdn/custom-hostname/img.acme.com/verify

SSL / TLS

CDN ProviderSSL MethodProvisioning Time
Cloudflare for SaaSAutomatic (Let's Encrypt / Digicert)Minutes to hours
Bunny CDNAutomatic (Let's Encrypt)Minutes

All certificates are automatically renewed before expiry. Zero manual intervention.

URL Delivery Models

ModelURL PatternBest For
Subdomain (Imgix-style)my-source.imgfoundry.io/width/400/photo.jpgMulti-source SaaS
Subroute (ImageBoss-style)img.imgfoundry.io/my-source/width/400/photo.jpgSingle-domain setup
Vanity domainimg.acme.com/width/400/photo.jpgWhite-label / enterprise

Serve Images from Your Own Domain

Add a CNAME, SSL auto-provisions, you're live.

Get Started Free Read the Docs