Custom domains
Serve an app at your own domain, such as www.example.com, as well as at
<app-name>.passivedev.com.
Add the domain
On the app's Settings tab, under Custom domains, enter the domain and choose Add domain. It appears as Pending until its DNS points at Passive and shows the domain is yours.
Some domains are refused:
- an IP address;
- a reserved name, such as
localhostor anything ending in.localor.internal; - a
passivedev.comname, which every app already has.
If another app has already claimed the domain, adding it answers with a TXT record to add (see Prove the domain is yours). Add it, then add the domain again: it moves to your app.
Point your DNS at Passive
The DNS setup card under the list shows the exact values for this app. Add one record at your DNS provider:
| Domain | Record | Points to |
|---|---|---|
An apex domain, such as example.com | A | The IP address the card shows |
A subdomain, such as www.example.com | CNAME | <app-name>.passivedev.com |
Copy the value from the card rather than from here: the address can change, and the card always has the current one.
If your DNS provider can proxy traffic through its own network (Cloudflare's orange cloud, for example), turn that off for this record. A proxied record resolves to the provider's addresses, not Passive's, so it never verifies.
Prove the domain is yours
Every app shares the same address, so an A record alone does not say which app the domain
is for. Passive also needs one of:
- a
CNAMEstraight to<app-name>.passivedev.com, which a subdomain already has from the table above; or - a
TXTrecord named_passive-challenge.<your domain>, with the value the domain's row shows (passive-verify=…). An apex domain needs this one.
The value is yours alone: someone else adding the same domain gets a different one.
Verify
DNS changes can take a few minutes to reach everyone. Once your records are in place, choose Verify. The domain becomes Verified when it resolves to Passive and is proven yours. If it does not, the row says why:
- DNS not resolving yet: the name has no address yet. Wait, then verify again.
- DNS points elsewhere: the name resolves, but to other addresses, which the row lists. Check the record, and the proxy setting above.
- Add the TXT record: the name points at Passive, but there is no CNAME to this app and no TXT record with this domain's value yet.
Verify again whenever you change the record. Verifying a domain that no longer points at Passive moves it back to Pending. A verified domain is not asked to prove ownership again, so the TXT record can stay or go.
HTTPS
A verified domain is served over HTTPS. The certificate is issued automatically on the domain's first visit, so the first request can take a few seconds longer. Only verified domains are served; a pending one is not.
Remove a domain
Remove on the domain's row, then Confirm. The app stops answering at that domain straight away. Remove the DNS record at your provider too.
From the API
| Route | What it does |
|---|---|
GET /apps/{app}/domains | Lists the app's domains, each with its txt_name and txt_value, and the DNS values to set |
POST /apps/{app}/domains | Adds a domain: {"domain": "www.example.com"}. A 409 for a domain another app claimed names the TXT record that moves it to yours |
POST /apps/{app}/domains/{domain}/verify | Checks its DNS again |
DELETE /apps/{app}/domains/{domain} | Removes it |
Reading needs apps:read; the others need apps:write. See API keys.