Custom domain names for endpoints

190 views
Skip to first unread message

pa...@rocketscience.nz

unread,
Mar 12, 2019, 10:50:50 PM3/12/19
to Google Cloud Endpoints
I've run thru the documentation and followed the settings to the letter, but I can't get my domain name to work.

I just get "method does not exist" errors.

Has anyone got this working? I'm running endpoints thru to app engine flex which is running up a custom nodejs service. I can have it running nicely on just the supplied appspot.com domain, but I have no luck with a custom domain.

Steps done:

-Verified Domain name
-added subdomain to openapi.yaml as host: api.mydomain.com
-deployed endpoints
-added service name to my app.yaml
endpoints_api_service:
rollout_strategy: managed
-deployed service app
- gone to app engine settings and added custom domains and subs

I get no traffic showing up on the endpoint logs after I hit the url api.mydomain.com but if I hit the appspot url I see traffic on both the service and endpoint.

any help at this point would be appreciated.

PAul.

Tomasz Boczkowski

unread,
Mar 13, 2019, 1:02:24 PM3/13/19
to Google Cloud Endpoints
Hi PAul,

There is one steps that seems to be missing from the list you included: configuring your DNS provider, so that api.mydomain.com is a CNAME record, which points to ghs.googlehosted.com

Best regards,
  Tomasz

pa...@rocketscience.nz

unread,
Mar 13, 2019, 3:21:52 PM3/13/19
to Google Cloud Endpoints
Tomasz,

Thankyou for your reply, but unfortunately I had done that as part of the 'verify' step.

The domain name is being successfully directed at google, it's being picked up and served the default service (not the one I setup in endpoints, just the default app engine service for the project)

The issue seems to be in getting endpoints to pickup the incoming requests and forward them on to the correct service.

This seems to be part of the hidden connects in GCP.


Paul.
Reply all
Reply to author
Forward
0 new messages