Menu

A simple way to keep your self-hosted website accessible during outages

Reading 0:00
15s threshold

One downside of self-hosting a website is that when your server goes offline, your visitors get an error page.

I put together a workaround using Cloudflare Workers. Basically, you save a static copy of your public pages, and Cloudflare serves that copy whenever the origin is unavailable.

No second server needed, and it works on the free tier within its limits.

I wrote a walkthrough with the setup, code and screenshots:

https://igprod.net/cloudflare-always-online-snapshot

Might be useful if you're hosting a blog or documentation site at home.

submitted by /u/ycharif
[link] [comments]