Docs · Configure
Custom domains
On a paid plan, buy a domain in homeport and it is set up for you, or bring one you have: add it on an environment’s Domains tab and create the two DNS records it shows you. Either way it goes live by itself once DNS resolves, usually within minutes, and its HTTPS certificate is issued for you.
Buying a domain
On Starter and above, the team’s owner can buy a domain on the team’s Domains page, or with Buy a domain on an environment’s Domains tab. Search for a name and you see its price for a year. On Free you can search and see prices, and buying needs a paid plan.
.com,.dev,.app,.io,.co,.netand.orgare sold, one year at a time.- Your card is charged before the domain is registered; if the registration fails, the charge is refunded. Once registered, it is not refundable.
- The domain is yours: it is registered with your contact details as the holder. The registrar emails you a link to verify that address, which must be clicked within 15 days.
- Choose an environment and homeport sets the DNS records, attaches the domain and its
www, and once both are live sendswwwto the domain. There is nothing to configure. - Its DNS is editable on the domain’s page: add
A,AAAA,CNAME,TXTandMXrecords, for email say. The records that point it at your app are locked while it is attached.
Renewals
Bought domains renew themselves each year. You get an email 45 days before, with the price, and your card is charged 30 days before it expires. If the renewal price has gone up by more than 10%, nothing is charged until you confirm it. Turn renewal off on the domain’s page to let it expire.
Domain charges are separate from usage: they are charged to your card when you buy or renew, your plan’s included usage does not cover them, and your monthly budget does not count them. They are listed on the Billing page. To move a domain to another registrar, unlock it and copy its transfer code from its page (not in its first 60 days, a registry rule).
Bringing your own domain
- Open the app, choose the environment (production, usually) and its Domains tab.
- Enter the domain, such as
shop.example.com, and choose Add domain. - Create the records it lists at your DNS provider (below). The domain shows as Pending until they resolve.
- When both are there, it changes to Live. The app keeps answering at its homeport.run address too.
The DNS records
For a subdomain, like shop.example.com or www.example.com:
| Type | Name | Value |
|---|---|---|
CNAME | shop.example.com | edge.homeport.run |
TXT | _homeport.shop.example.com | homeport-verify=… |
For a root domain, like example.com, where most DNS providers do not allow a CNAME: an A record for the domain, to the IP address the Domains tab shows, and the same TXT record.
- The
TXTvalue is unique to the domain and this app. Copy it from the Domains tab. Removing a domain and adding it again issues a new one. - A subdomain can skip its own
TXTrecord when your team has added a domain above it: that domain’s record proves every name under it (below). - Remove any
AAAArecord for the domain: a domain with an IPv6 address does not verify. - If your DNS provider can proxy a record, keep it DNS only unless you follow Putting your domain behind Cloudflare’s proxy: a proxied record resolves to the proxy’s addresses rather than homeport’s, so only the TXT record can prove the domain is yours.
One TXT record for a domain’s subdomains
Once your team has added example.com to any of its apps and created its TXT record at _homeport.example.com, that record proves every name under example.com, at any depth (shop.example.com, api.eu.example.com), on any of the team’s apps and environments. The claim on example.com can be live or pending, and a wildcard *.example.com the team has added counts too. The Domains tab shows the parent’s record beside each subdomain’s own, or, when the team has no domain above it, which domain to add.
- A domain in between works too (your team’s
eu.example.comproves names under it), but never above the registrable domain: no record at_homeport.comproves anything. - Only your own team’s record counts: another team’s proves nothing of your names, nor yours of theirs.
- A pending name another app also claims, or under or over another team’s live domain, is contested and needs its own record.
- Remove the parent from the team’s apps and its record stops proving the names under it.
It is also how a proxied subdomain is proved with no TXT record of its own: see Putting your domain behind Cloudflare’s proxy.
When domains are checked
A pending domain is checked about every 30 seconds, a live one every 6 hours to make sure it still proves itself, and a proxied one every 5 minutes. A live domain goes back to Pending only after three failed checks in a row, and a check DNS didn’t answer never counts. A domain that never proves itself is removed after 7 days pending.
To check one straight away, choose Check now on its row on the Domains tab. It runs the same check and says what it found. A domain can be checked once every 30 seconds (inside that, you see its last result and when you can check again), and a team can check 10 domains a minute.
HTTPS
Once a domain is Live, its certificate is issued from Let’s Encrypt on the first visit, and renewed for you. There is nothing to upload. The first request to a new domain can take a few seconds while that happens.
www and the root domain
Adding example.com adds www.example.com with it (and adding a www. domain adds its root), each with its own records, unless you untick With its www. Once both are Live, the www. redirects to the domain, permanently, with the path and query kept. Together they count as one domain against your plan.
A live domain whose www. points at homeport without being added is flagged on the Domains tab, with Add as redirect to add it in one click. Any live domain on the environment can redirect to another with Redirect, but not in a chain.
Limits
| Plan | Custom domains for the team (a domain and its www count as one) |
|---|---|
| Free | None |
| Starter | 10 |
| Growth | 50 |
| Business | 250 |
- An app can have up to 10 domains, and a domain belongs to one app.
- Names under
homeport.runcannot be added: every app already has one. - Removing a domain stops it answering for the app straight away. You can add it again, but its proof starts over.
Messages you may see
| Message | What it means |
|---|---|
Custom domains need a paid plan | Free has no custom domains. |
your plan has room for 10 custom domains | The team has as many domains as its plan allows. |
an app may have 10 domains | This app has 10 already. |
"shop" isn't a domain | Enter a full domain name, without https:// or a path. |