为Google Cloud Storage静态网站设置SSL? [英] Setting up SSL for Google Cloud Storage static website?

查看:112
本文介绍了为Google Cloud Storage静态网站设置SSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以通过SSL为Google Cloud Storage上的静态网站(实际上是SPA)提供一个漂亮的SSL地址和图标,供用户查看?

Is there any way to serve a static website (SPA actually) located on Google Cloud Storage via SSL, for that nice SSL address and icon for users to see?

Amazon允许通过CloudFront SNI进行此操作.

Amazon allows this via CloudFront SNI.

推荐答案

是!

直接通过CNAME重定向使用GCS仅允许HTTP流量.

Using GCS directly via CNAME redirects only allows HTTP traffic.

要将HTTPS与您自己的域一起使用,您需要设置Google Cloud Load Balancer,并且还可以选择设置Google Cloud CDN.尽管增加了一点复杂性,但Google Cloud Load Balancer允许您使用各种内容填充域. GCS存储桶可以提供某些资源,但您也可以在GCE中拥有服务器,为其他路径提供动态内容.

To use HTTPS with your own domain, you'll need to set up Google Cloud Load Balancer, and optionally you'll want to set up Google Cloud CDN as well. While it adds a bit of complexity, Google Cloud Load Balancer allows you to fill a domain with all sorts of content. Some resources could be served by a GCS bucket, but you could also have servers in GCE serving dynamic content for other paths.

此处提供有关设置的说明: https://cloud.google.com/compute/docs/load-balancing/http/using-http-lb-with-cloud-storage .

There are instructions for setting this up here: https://cloud.google.com/compute/docs/load-balancing/http/using-http-lb-with-cloud-storage.

这篇关于为Google Cloud Storage静态网站设置SSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆