Appearance
Custom CDN
By default, all files are served from https://cdn.atiru.io. You can configure your own domain so file URLs use your brand (e.g. https://images.example.com/m/abc123).
Important: set DNS first
Add the CNAME record in your DNS before adding the custom domain in Atiru. If you add the domain in Atiru first, verification will fail. Set the CNAME, wait for DNS to propagate (usually a few minutes), then add the domain in Settings.
How it works
- In your DNS: Create a CNAME record:
images.example.com→cdn.atiru.io(or your chosen subdomain). Wait for propagation. - In Atiru: Go to Settings → Custom Domain and enter your hostname (e.g.
images.example.com). - Click Check Status. When both verification and SSL show active, your domain is ready.
- New uploads will return
public_urlandpublic_download_urlusing your domain.
Dashboard: Configure
- First, in your DNS provider: Add a CNAME record pointing your hostname to
cdn.atiru.io. Example: nameimages(forimages.example.com), targetcdn.atiru.io. - Wait for DNS to propagate (a few minutes).
- Log in to atiru.io, go to Settings.
- In Custom Domain, enter your hostname (e.g.
images.example.com) and add it. - Click Check Status until verification and SSL are active.
API: Configure
Set the CNAME in your DNS first, then call:
Endpoint: PATCH /settings
json
{
"custom_domain": "images.example.com"
}To remove: { "custom_domain": null }
To refresh status: { "refresh_custom_domain": true }
curl
bash
curl -X PATCH "https://api.atiru.io/settings" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"custom_domain":"images.example.com"}'Example: Cloudflare DNS
- Log in to your DNS provider (e.g. Cloudflare).
- Select your domain (e.g.
example.com). - Add a record: Type CNAME, Name
images(forimages.example.com), Targetcdn.atiru.io. - Save and wait for propagation.
Then add the custom domain in Atiru Settings and click Check Status.
Important
- HTTPS: Your file URLs will use
https://on your hostname. SSL is issued automatically. - One domain per account: You can have one custom domain. To change it, remove the current one first.