Add a custom domain

Point your own domain at a service, verify its DNS, and choose whether the ghaym.app address stays open.

Bind the domain

  1. Open the website, press ⌘K and choose Settings › Bind a domain. Type the hostname, such as shop.example.com, and press Enter.

    The domain binds at once, to the service in production.

    A service in any open site can take a custom domain. You don't name a country when you bind it.

    With the CLI:

    Terminal
    ghaym cloud domains add web shop.example.com
  2. At your DNS provider, add the two records the domain shows under DNS records: a CNAME from your hostname to the service's address, and a TXT record at _ghaym-verify.shop.example.com that proves the domain is yours.

    With the CLI:

    Terminal
    ghaym cloud domains list web

Check it

Ghaym checks the records on its own. The domain reads Checking until it finds them, then Running, and Check failed when a record is missing or wrong. To check at once, press ⌘K and choose Settings › Verify now.

Terminal
ghaym cloud domains verify web <domain-id>

Turn off the ghaym.app address

Once your domain runs, the service can answer on it alone. Press ⌘K, choose Settings › Access › ghaym.app address to turn it Off, and apply the change. Until a domain runs, the row reads Bind a domain first to turn it off. See access for what else the service's access can do.

Terminal
ghaym cloud access set web --reach custom-domain --apply