Configure

Custom domains

A public resource can also answer on your own domain — app.example.com or the root example.com. Click the resource, Overview → Custom domains, type the domain, Add. It shows the DNS records to create at your DNS host, and what public DNS answers for each right now:

type name value
TXT _ridgeline.app.example.com ridgeline-verify=… (shown) required — proves the domain is yours; nothing goes live for it until this is in public DNS
CNAME app.example.com cname.ridgelinehost.com required
TXT _cf-custom-hostname.app.example.com (shown once proven) optional — lets the certificate be issued before the CNAME moves, for a site live elsewhere today. Not offered when the domain's DNS is on Cloudflare: Cloudflare activates such a name only once it points here, so expect about a minute of errors when you move a live one

Adding a domain is a claim until its _ridgeline TXT is seen: nothing is created or routed for it before that, and a claim nobody proves blocks nobody (it is removed after a week). The value is the same for every resource in your workspace, so moving a domain between your own resources needs no DNS change.

At the root of a domain use your DNS host's CNAME flattening, ALIAS or ANAME (Cloudflare does this for you). Once the CNAME is in place the certificate is issued automatically and the status turns Active; DNS can take a while to spread, and Check again re-reads it. A domain that never points here is removed after a week. Your domain reaches the same container as the resource's own address, with its own name in the Host header. No wildcards. One domain belongs to one resource only — the first to prove it.

Let Ridgeline write the records. Under Settings → Cloudflare, Connect Cloudflare opens Cloudflare's token page with Zone Read and DNS Edit already picked; paste the token back (it is encrypted and never shown again). From then on, adding a custom domain in a zone that token can see creates its proof TXT and its CNAME (DNS only) for you — and connecting does the same for domains you added before it. A name that already points somewhere (a site live elsewhere, a proxied record included) moves here by itself as soon as the domain is proven AND the resource answers on its own address — Ridgeline re-aims that one record, keeping its proxy setting, and tells the project. So add the domain once the new deploy is ready: that is the cutover. A name with several records (A + AAAA, say) is left for you to replace with one CNAME. Point it here (dashboard, or …/point below) moves it at once. Removing the domain puts the old record back and deletes only the records Ridgeline created. DNS elsewhere? Settings → Cloudflare → the guide walks through it for any DNS host.

Turn off the ridgelinehost.com address. Once a custom domain is Active, Public address → ⋮ → Turn off makes the resource answer only on your own domains (its ridgelinehost.com name returns 404). Turn on brings it back; removing the last active custom domain turns it back on by itself. Over the API: PATCH /api/v1/resources/{name} with {"addressOff": true} (409 no-active-domain until one is Active); the resource's url then names the custom domain.

API: GET /api/v1/resources/{name}/domains (each domain with its status, proven, and records), POST …/domains {"hostname":"app.example.com"} (201; 409 taken, 403 plan-limit), DELETE …/domains/{hostname}, and POST …/domains/{hostname}/point to move a live name here now instead of waiting (409 several-records / no-connection).

Something wrong or missing here? Tell us and a person will answer.