I set up a custom domain with App Engine after following the instructions on DNS records:
https://cloud.google.com/appengine/docs/standard/java/mapping-custom-domain
Here's a step-by-step:
subdomain.example.com
you need to own example.com
)
If not, ask a friend to add you as an owner.ghs.googlehosted.com
(in Cloud DNS or wherever).
Note: This will cause downtime, but it is required for App Engine to create an SSL certificate so downtime is unavoidable...App Engine -> Settings -> Custom Domains
Add a custom domain
Continue
subdomain.example.com
) and click Save mappings
Done
(you already did this last step)gcloud app describe --project
and take a look at the current section of dispatchRules
dispatch.yaml
or dispatch.yml
file with your new rule as well as the ones already existing above (note the file format is different from the command output)dispatch:
- url: /* # e.g. subdomain.example.com/*
service:
gcloud app deploy dispatch.yaml --project