Skip to main content

Custom Domains

After we deploy our app, we will be issued a default production endpoint which will look something like: https://d9an3dn2wd.execute-api.us-west-2.amazonaws.com. We can implement custom domains to convert this URL into a human-readable URL. You can use GCP Cloud Console to configure cloud run custom domains for a Zeet project.

1. Activate Load Balancing

A load balancer is required to use custom domains

Under Settings => Networking, enter the port number (e.g. 3000) which your app should be accessible.

2. Enter your custom domain

Enter your custom domain. You must own this domain.

3. Enter the acm-validation instructions into your DNS

After you enter your custom domain, wait until you see the acm-validations.aws as shown below. If it doesn't appear after a few minutes, you may need to reload the page. In the example below, we are using Google for our DNS.

  • Copy and paste the host name and value. As shown below, exclude the domain name ("zeet.dev.") from the host name.
  • Select "CNAME" as the type.
  • Choose your desired TTL ("Time to Live" in seconds).

4. Wait for the SSL certificate to be ready

5. Redeploy App

Navigate to the Deployments tab. Click the "restart" button from the button shown below.

6. Enter the new host name and value into your DNS

Navigate back to the Settings => Network

  • Copy and paste the your new host name (excluding the domain: i.e. "zeet.dev") and value into your DNS
    • Note, the corresponding value for the custom domain (test4.zeet.dev) is a different endpoint than the Invoke URL
  • Select "CNAME" as the type.
  • Choose your desired TTL ("Time to Live" in seconds).

Resources