Google Pub/Sub: push to compute engine

久未见 提交于 2019-12-11 13:56:09

问题


In Google Pub/Sub, is it possible to use an HTTPS server running on a Compute Engine VM instance as an endpoint for a push subscription? I'm a bit stumped, as in the documentation it says the server must be reachable by a DNS name.

Any advice appreciated - cheers!


回答1:


It is possible, but you'll need configure a domain name to point to your GCE instance. That means you need:

  1. A domain name you can assign to the GCE instance.
  2. An SSL certificate signed by a well-known authority. (It has been requested that self-signed SSL certificate support be added, but that hasn't happened thus far).

You can assign a static IP address to your GCE instance and then map the domain name to that IP address either through your own DNS provider or via Cloud DNS.



来源:https://stackoverflow.com/questions/37004434/google-pub-sub-push-to-compute-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!