Creating a "maintenance" page for my self-hosted sites (blog.k3can.us)
from K3can@lemmy.radio to selfhosted@lemmy.world on 29 Jul 14:39
https://lemmy.radio/post/14514857

I selfhost several public-facing sites, including my personal blog. I’ll be needing to relocate my servers soon, though, and I wanted something more “proper” to display in their place while the servers are offline.

I won’t repeat the whole post here (see link), but I ultimately set up a CF worker that I can enable with the flip of a switch whenever my server will be down.

It’s a temporary, hosted solution to a common self-hosting problem, so I think it still fits here… but no hard feelings if mods decide otherwise.

#selfhosted

threaded - newest

NGram@piefed.ca on 29 Jul 18:36 collapse

That’s a very elegant way of doing it! I need to do something similar with my setup one day. Having everything hosted in my home gives me the most control but also a lower availability than if I ran everything in someone else’s datacenter. Currently an outage means that browsers and other clients just time out which is not very informative. Have you explored any other options? I was thinking of spinning up a dedicated VM somewhere to handle this and automatically switching over DNS entries at the same time (maybe automatically update DynDNS when the VM boots).

WRT is this relevant to selfhosted: I think some people will disagree, but Cloudflare is still selfhosting. It’s not localhosting, but as long as it’s services that you provision yourself it’s selfhosting.

K3can@lemmy.radio on 29 Jul 20:05 collapse

Have you explored any other options?

Yeah. I briefly explored some other possibilities in the post, including a potential self-hosted option, but ultimately landed on CF as a practical compromise.