Skip to content

How to add your own domain to a Zenith app

Serve a Zenith app at a domain you own. Add one CNAME record and Zenith issues the HTTPS certificate.

Connect your domain

  1. 1

    Open the Networking tab

    In your Zenith dashboard, open the app and go to Networking. Under Use your own domain, click Enable custom domain. Each app can have one custom domain.

  2. 2

    Enter the domain

    Type the domain you want to use, such as books.example.com, and click Apply. Use a domain you own, not a Zenith address.

  3. 3

    Add a CNAME record

    At your DNS provider, create a CNAME record from your domain to the app's Zenith address, which the Networking tab shows. If your DNS is on Cloudflare, you can click Connect with Cloudflare and approve the change there instead.

    books.example.com CNAME books-alex.zh.run
  4. 4

    Check the connection

    Click Check connection. Once the record is found, the status moves to Setting up HTTPS. The certificate usually takes under a minute, then the status reads Connected.

If it doesn't connect

  • No DNS record for this domain yet. The record hasn't reached public DNS. Check the spelling of the name and target, wait a few minutes, then click Check again.
  • Verify ownership. Some providers flatten a CNAME on a root domain such as example.com. Zenith then shows a TXT record named _zenith-verification. Add it and check again.
  • Already in use by another app. A domain can serve one app at a time. Remove it from the other app first.