Earlier quoted context omitted.
Basically everything you wrote about GitHub Pages is wrong. GitHub Pages is static hosting. If you don’t need Jekyll, don’t use it. There’s nothing special about it. GitHub Pages does NOT charge for custom domains. You can configure any branch for GitHub Pages, or even just the /docs folder on the main branch.
Just as a clarification, much of what you mention has only changed in the last year or so. For a very long time gh-pages branch and Jekyll were assumed (you couldn't even use plugins with Jekyll). Custom domains weren't free. SSL wasn't free. Github is doing great stuff but it has taken time to evolve into the all free all you can eat buffet you see today.
Ask HN: Cheapest/easiest way to host a static site?
381–390 of 507 posts
Re: Ask HN: Cheapest/easiest way to host a static site?
#382Re: Ask HN: Cheapest/easiest way to host a static site?
#383Earlier quoted context omitted.
I have used nfshost for hosting multiple sites for over a decade. They're a fantastic service that's simple, secure, and provides great, fast support. They recently published this blog post: https://blog.nearlyfreespeech.net/2021/01/19/free-speech-in-... After reading this, I made the decision to move my hosting elsewhere. I have never hosted content that is even remotely political, and have no intention to do so. I…
There's a difference between "freely expressing your ideas" and eg. plotting a vigilante kidnapping. The former should be protected, the latter should be reported to the police. A lot of the people who say they want free speech actually have some kind of anarchist fantasy where they can do whatever they want without consequences. It seems like you care about free speech, not anarchism, so I'm not sure why the blog po…
Re: Ask HN: Cheapest/easiest way to host a static site?
#384AWS S3 + Cloudfront. The initial setup can be a little finicky, but once you do get it setup, the rest of the time you only do an S3 sync from your local dir to the S3 bucket. It will also be stupid fast (cloudfront is edge networks) + have ssl + it will not go down if you ever see a surge in traffic. I have several of these and they work beautifully. As far as cost goes: 12$/domain per year + 0.5$/month for route53…
Yes, I have a similar setup on Azure - Azure Storage account with an Azure CDN fronting it. It's less than a single US cent per month for the hosting and bandwidth costs atm.
Re: Ask HN: Cheapest/easiest way to host a static site?
#385Earlier quoted context omitted.
I see the "GitHub Pages" suggested a lot whenever this question comes up, but it's worth noting that it's against their ToS[0] to use it for commercial purposes: "GitHub Pages is not intended for or allowed to be used as a free web hosting service to run your online business, e-commerce site, or any other website that is primarily directed at either facilitating commercial transactions or providing commercial softwar…
That's a great point. I actually looked at GitHub pages and my main issue with it is there's no way to password lock the site. I don't need serious security here, but I also don't exactly want the entire world to see my HTML playground. I'm not sure why they're doing it this way, it should be a nominal task to restrict viewers to those with read access to your repo, but I think it underscores the use cases they have…
I don't think it would be quite that trivial. They would have to inject authentication into your HTML, which could cause lots of things to break.
Re: Ask HN: Cheapest/easiest way to host a static site?
#386AWS S3 + Cloudfront. The initial setup can be a little finicky, but once you do get it setup, the rest of the time you only do an S3 sync from your local dir to the S3 bucket. It will also be stupid fast (cloudfront is edge networks) + have ssl + it will not go down if you ever see a surge in traffic. I have several of these and they work beautifully. As far as cost goes: 12$/domain per year + 0.5$/month for route53…
Re: Ask HN: Cheapest/easiest way to host a static site?
#387Check with your ISP, they often offer some 10 or sometimes 50! MB of free space to host your homepage and images under an account url, eg: http://example.com/~you . Uploading is easy, just FTP your files to their server and your done! I miss the old days :(
Re: Ask HN: Cheapest/easiest way to host a static site?
#388You can use custom domains with SSL
Here's a full example:
Re: Ask HN: Cheapest/easiest way to host a static site?
#389I continue to be a big fan of surge [1]. A number of toy projects/demos of mine have been developed using create-react-app, rendered to static files, then deployed via surge. [1] = https://surge.sh/
Re: Ask HN: Cheapest/easiest way to host a static site?
#390Hosting a personal blog on old / cheap hardware at home and accepting some downtime now and then should be a trade-of worth making for most. An interconnected web of documents served from personal computers residing under a desk or in a basement – it is a beautiful thing. We nerds often seem to fall into the trap of over-engineering things, like, spending a lot of time building personal stuff that can scale into the…
Bonus that this works even if your server is behind some DMZ or bastion without having to open up the mothership.
(For the use-case of a public personal static site this probably doesn't make much sense; you could just publish to the VPS in the first place. But if you have server-side stuff you must or want to run locally for whatever reason, this is way more straightforward to get right than manually fiddling with iptables, using some SSH tunnel, or setting up redundant reverse proxies)