Using Google Cloud Storage + Cloudflare to Host a Static Website for just PENNIES PER MONTH!

Опубликовано: 04 Декабрь 2024
на канале: DevOps Directive
5,223
155

This is a quick tutorial of what I think is currently the best option for hosting static websites, within a Google Cloud Storage bucket with HTTPS provided by Cloudflare!

There are many ways to host a static website, but in my opinion, none can compete with this one in terms of simplicity, scalability, and affordability (it's practically free!).

Yes, I actually bought that domain, and the website is live 😁:
`REDACTED LINK BECAUSE I NO LONGER OWN THE DOMAIN`

Verifying domain ownership for GCS bucket creation:
https://www.google.com/webmasters/ver... (google domains)
https://cloud.google.com/identity/doc... (any domain provider)

Why does a static site even need HTTPS?
https://www.troyhunt.com/heres-why-yo...

Code from this video and others:
https://github.com/sidpalas/devops-di...

Cheers!

---
Join the Community:
💬 Discord:   / discord  
💻 GitHub: https://github.com/sidpalas/devops-di...
🐥 Twitter:   / sidpalas  
👨‍💼 LinkedIn:   / sid-palas  
🌐 Website: https://devopsdirective.com
---

Timestamps:
0:00 Intro
0:38 Super simple static site setup... w/ SSL
0:45 Buying a new domain
0:56 Add domain to Cloudflare
1:22 Add CNAME record
1:38 Choosing Flexible SSL
2:13 gsutil commands
3:25 rsync
3:50 Viewing live site
4:07 Question of the week
4:27 Outro

---

Community Size at Time of Posting:
Subscribers: 592
Channel Views: 9647

Note: I have a running joke with my wife that I'm not going to shave my beard until I reach 1000 subscribers (the last time I did was at 100...) and it is starting to get out of control 🧔+🎅+😳+😬+😅+😂