4 ms·
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?
by shafyy 2y 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?
- _benj 2y agoI’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.
- calvinmorrison 2y agoUsing github or some other host that allows you to host static sites for free.
- fastball 2y agoSetup 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.
- shafyy 2y agoYes, that's one possibility I was also considering, thanks!
- prmoustache 2y agoWhat more do you need than a web server?
- zilti 2y agoJust set up a simple VPN with nginx and upload the page, done. Stop overthinking and overengineering everthing to smithereens.
- shafyy 2y agoTrue, 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)
- siumauricio 2y agoAs 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