Skip to content

Custom domains

Available on the Cargo plan.

  1. Deploy first. The service needs a published port (it has an address to point at).
  2. Add the domain in the project page’s Custom domains section: pick the service, enter the hostname (shop.example.com). Or POST /projects/{id}/custom-domains with {"service_name": "web", "hostname": "shop.example.com"}.
  3. Create the CNAME it shows you at your DNS provider: shop.example.com → the target hostname.
  4. Wait for “verified”. CargoForge checks the CNAME in the background and issues the HTTPS certificate once it’s there. That’s usually minutes; DNS can take longer.

Notes:

  • The CNAME is the proof that you control the domain, so there’s no separate TXT record.
  • If your DNS is on Cloudflare, set the record to DNS only (grey cloud), not proxied: a proxied record stops the certificate from being issued.
  • An apex domain (example.com itself) needs a DNS provider that supports CNAME flattening or ALIAS records.