问题
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:
- A domain name you can assign to the GCE instance.
- 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