首页 文章

是否可以将“Google Cloud Endpoints”用于未托管在“Google平台”上的后端API?

提问于
浏览
0

我想知道,是否可以使用“Google Cloud Endpoints”的这种功能作为身份验证(与“Auth0”或“Firebase”集成),日志和其他具有托管在第三方服务器上的后端API的功能?我了解到“Google Cloud Endpoint”是基于NGINX的“可扩展服务代理” . 这是否意味着我可以以某种方式编辑nginx配置并将其设置为反向代理,以便请求Google平台之外的后端API?

来自https://cloudplatform.googleblog.com/2016/09/manage-your-APIs-with-Google-Cloud-Endpoints.html的声明说:"Google Cloud Endpoints, a distributed API management suite that lets you deploy, protect, monitor and manage APIs written in any language and running on Google Cloud Platform (GCP)"

但来自https://cloud.google.com/endpoints/docs/about-cloud-endpoints的文章说:"you can host your API anywhere Docker is supported so long as it has internet access to Google Cloud Platform."

没有任何示例如何在docs中自定义“Extensible Service Proxy”ngnix配置文件 .

我在这里有点困惑 . 是否有可能以我上面描述的方式使用“Google Cloud Endpoint”,如果是这样,我应该如何正确地使用它?

3 回答

  • 0

    我很棒!有关详细信息,请参阅google论坛中的讨论,网址为https://groups.google.com/forum/#!topic/google-cloud-endpoints/b0QtQoPwHzA

  • 0

    是的,ESP可以在任何地方运行,包括在GCP中,在另一个 Cloud 中,或在您自己的服务器上 .

  • 0

    可扩展服务代理是一个简单的nginx Web服务器,但它使用模板文件 . 因此,如果您对nginx.conf文件进行任何更改,然后重新启动nginx服务器Web服务器,则您的更改将被覆盖 . 您需要编辑nginx模板配置文件,该文件位于/ etc / nginx文件夹中 .

相关问题