Setting up SSL for Google Cloud Storage Static Website

EUROPE IT OUTSOURCING

MARKETING, DESIGN & DEVELOPMENT COMPANY

Setting up SSL for Google Cloud Storage Static Website

Marketing & Design Blog

Setting up SSL for Google Cloud Storage Static Website

Using GCS directly via CNAME redirects only allows HTTP traffic.

3 ways to solve this:

  1. 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.
  2. An alternative would be to host your domain DNS server at CloudFlare
  3. An alternative would be to host your SPA on Firebase. All apps have SSL included by default even those with custom domains.

The easiest way is to us CloudFlare

  1. Sign up to Cloudflare or you can use an existing account. https://www.cloudflare.com/sign-u
  2. Add domain name of your Google Cloud Project.
  3. For Cloudflare and Google Cloud Project to work together, you will need to update the DNS records on Cloudflare to point to your Google Cloud Instances.
    1. First, find the external IP address for your instance:
    2. Then enter that IP address for the A record of the subdomain that you want this instance to power:
  4. Make sure that the subdomain is “orange clouded” and that you have updated the nameservers at your registrar to use Cloudflare’s nameservers, and traffic will flow through Cloudflare to your Google Cloud instance!

Resources

support.cloudflare.com

Alternative ways:

stackoverflow.com

Stay up to date with our free guides, tips, and exclusive offers