News for hackers. Stuff that matters.
Re:Cloudflare R2 storage: Rapid and reliable object storage,... by lokl on Tuesday September 28, 2021 @10:14AM (#28683008)
Can you use R2 to host a static website as easily as you can with S3?
Re:Cloudflare R2 storage: Rapid and reliable object storage,... by BlackMiracle on Tuesday September 28, 2021 @10:16AM (#28683043)
To host static websites, you use Cloudflare Pages.
Re:Cloudflare R2 storage: Rapid and reliable object storage,... by segphault on Tuesday September 28, 2021 @03:08PM (#28686244)
Cloudflare Pages locks you into git-based deployment, which isn't always practical, especially for sites that are heavy with images and other non-text static assets. I don't want to use git to manage the images for my website and I don't want to have to pay Github every month for Git LFS storage and bandwidth costs.
Re:Cloudflare R2 storage: Rapid and reliable object storage,... by DenseComet on Tuesday September 28, 2021 @03:57PM (#28686796)
You can take a look at Workers Sites instead. Similar to their Pages solution, but with a lot more flexibility.
Re:Cloudflare R2 storage: Rapid and reliable object storage,... by lokl on Tuesday September 28, 2021 @10:22AM (#28683110)
Thanks, I am familiar with Pages, but I would like to know whether R2 can also be used for this purpose, in a similar fashion as S3.
Re:Cloudflare R2 storage: Rapid and reliable object storage,... by RulerOf on Tuesday September 28, 2021 @10:59AM (#28683578)
Indeed, the Browser -> CDN -> Object storage static hosting model all under one roof is extremely appealing.
Re:Cloudflare R2 storage: Rapid and reliable object storage,... by greg-m on Tuesday September 28, 2021 @11:51AM (#28684222)
Sure, you could just setup a Worker in front of a bucket. This is very similar to how the original Workers Sites worked.
Re:Cloudflare R2 storage: Rapid and reliable object storage,... by jl6 on Tuesday September 28, 2021 @04:58PM (#28687420)
This (combined with the free egress) would be an utterly killer app for sites that just want to publish a few simple static files.