Hacker News new | ask | show | jobs
by shafyy 779 days ago
What's the best way to simplify self-hosting static sites? Is there some sort of Netlify for self-hosting that also integrates with selected CDNs or similar?
6 comments

I’ve been actually looking for some of these myself.

The two that I’ve used are cloudflare pages and bunny storage.

Cloudflare integrates with git and even runs builds for multiple static website frameworks (hugo, 11ty, etc)

Bunny storage is a bit clunkier when it comes to setting a ci/cd since it has nothing to support it. One can upload via ftp, web browser or API. And after uploading usually purging the cdn cache is needed to apply the changes.

I still prefer bunny because cloudflare give pages for “free”, which I don’t trust.

Cloudflare Pages has a free tier but also paid tiers.
Yeah, I've also experimented with BunnyCDN and KeyCDN. I'd like to stay with an EU provider if possible.
What more do you need than a web server?
Just set up a simple VPN with nginx and upload the page, done. Stop overthinking and overengineering everthing to smithereens.
True, was also considering this. Just thought having a CDN would be useful at some points (e.g. to compress/resize images, generate source sets of images automatically)
Setup a github action that compiles the static site and uploads it to a server with nginx/caddy/etc?

If you want it super self-hosted, then self-host gitlab and use their CI/CD instead of Github Actions.

Yes, that's one possibility I was also considering, thanks!
As the others said, you could simple use github pages, or if you want to have more features you can try different alternatives which relies on self hosting

dokploy coolify caprover

Using github or some other host that allows you to host static sites for free.