https://... URL on a Sail domain. With
a custom domain, the same listener also answers on a hostname you own, such
as app.example.com. Sail obtains and renews the TLS certificate for you.
There is nothing to upload and no certificate to manage.
Add a custom domain
Adding a domain is a three step process.1. Expose an HTTP listener
Expose the guest port as an HTTP listener, at creation time or later. See Networking for details.2. Point your domain at your target address
Every organization has its own target address undersailboxes.sailresearch.com. Pointing your domain at it is what proves your
organization controls the domain, so no one else can register it. Find your
target in the cname_target field of the list call below, or in the error
message if you register before DNS is ready.
Create a CNAME record at your DNS provider:
example.com, standard CNAME records are not
allowed at the zone root, and ALIAS-style records hide the target name. Use
your provider’s ALIAS or ANAME record type for routing, and add a TXT record
that carries the proof instead:
3. Register the domain
Register the domain against the Sailbox and guest port. Sail checks that the DNS record is in place, then starts serving the hostname:List and remove domains
The list response includes your organization’scname_target, so you can
look it up before registering your first domain.
Notes
- A domain can be registered to one Sailbox listener at a time.
- Wildcard domains such as
*.example.comare not supported. Register each hostname individually. - Custom domains apply to HTTP listeners. TCP listeners already work with any hostname you CNAME at their endpoint, because TCP connections are routed by port and passed through without TLS termination.
- Listener allowlists keep working behind a custom domain.
- The domain keeps working across sleep and resume. A request to a sleeping Sailbox wakes it, like on the generated URL. While a Sailbox is paused, its domains stay registered but requests fail until you resume it. Terminating the Sailbox stops its domains.
- On a private Sailbox, only its creator can add or remove domains.