Deploy Google Endpoint in a custom Domain

2020-03-04 07:18发布

Is there any problems using Google Cloud Endpoints with custom domain?

I was using it for some weeks then, after a deploy it stopped to work. I look here and I found this question that says it is not allowed yet.

But it was working for me on http://www.customdomain.com/_ah/api/app-id/v1...

2条回答
仙女界的扛把子
2楼-- · 2020-03-04 07:55

If you're using App Engine's built-in support for custom domains as outlined here, it's not expected to work. You can follow this feature request to keep up-to-date on the feature's progress.

查看更多
迷人小祖宗
3楼-- · 2020-03-04 08:12

Now,Google CloudEndpoints 2.0 support it

Migrating to version 2.0:

  • Update your dependency to use the new artifact. In Maven, this looks something like below:

    com.google.endpoints endpoints-framework 2.0.0-beta.8

  • Remove the legacy dependency, which is the appengine-endpoints artifact.

  • Update the API entry point in your project web.xml file:

    • Rename all occurrences of SystemServiceServlet to EndpointsServlet.
    • Replace all occurences of the path /_ah/spi/* to the new required path /_ah/api/*

See:

https://cloud.google.com/appengine/docs/java/endpoints/migrating

https://code.google.com/p/googleappengine/issues/detail?id=9384

查看更多
登录 后发表回答