Google Pub/Sub: 推送到计算引擎

Google Pub/Sub: push to compute engine

在 Google Pub/Sub 中,是否可以在 Compute Engine VM 实例上使用 HTTPS 服务器 运行 作为推送订阅的端点?我有点难过,因为在文档中它说服务器必须可以通过 DNS 名称访问。

感谢任何建议 - 干杯!

可以,但您需要配置一个域名以指向您的 GCE 实例。这意味着您需要:

  1. 您可以分配给 GCE 实例的域名。
  2. 由知名机构签署的 SSL 证书。 (已要求添加自签名 SSL 证书支持,但目前尚未实现)。

你可以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.