Live data from Hacker News

Ask HN: Cheapest/easiest way to host a static site?

news.ycombinator.com

401–410 of 507 posts

Re: Ask HN: Cheapest/easiest way to host a static site?

#402

Earlier quoted context omitted.

Don't a bunch of residential ISP's not allow HTTP?

Yes but just in the land of the Free.

Source? I've never heard of this in the US or in other countries I've been in, although I wouldn't doubt it's the case somewhere.

Re: Ask HN: Cheapest/easiest way to host a static site?

#403

I’ll second the use of GitLab pages - free hosting, free letsencrypt cert, only pay for your domain, very easy setup. Here’s my setup with Zola: https://seanharrison.org/postgrails/20200523-got-zola/ A couple notes about setting up DNS since the gitlab instructions weren’t 100% clear to me: https://seanharrison.org/postgrails/20200720-gitlab-pages-dn...

I can't say I'd second it -- at least not for anything outside of demos. You can't set custom headers which means you can set the recommended OWASP security headers and you'll get an F score on Mozilla Observatory. This will also not let you set proper caching headers which can mess with performance or just be incorrect like with service workers. A small additional nitpick is that you will need to do your own gzip and brotli compression instead of that being done by default (which is easy to forget about, but at least it gives you the flexibility to support Brotli and future formats like zstd whereas other providers you only get what they decide).

Re: Ask HN: Cheapest/easiest way to host a static site?

#404

Earlier quoted context omitted.

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…

> it should be a nominal task to restrict viewers to those with read access to your repo 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.

They offer it for Github enterprise .

Re: Ask HN: Cheapest/easiest way to host a static site?

#405
post #219

Hosting 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…

Same here! I'm working on a small site for pentesting / CTF commands. Like a cheat sheet but interactive so you have to copy and change less code during my day. It's entirely static so any nginx server just caches all the responses. A simple NUC does the trick.

Put the free Cloudflare proxy in front just to speed it up a little.

Re: Ask HN: Cheapest/easiest way to host a static site?

#406
i use Krystal web hosting (uk)

£4.99 for basic account

£9.99 unlimited subsite account (my choice)

No need to run daemons or maintain packages or configure backups

You can configure ssh access to put files

To deploy I use lftp which takes ftp commands from stdin and can do a recursive mput very similar to rsync

so I run my hand built deploy.pl which calls a subscript like this

  time ./scripts/push_to_cdn.pl | lftp

Re: Ask HN: Cheapest/easiest way to host a static site?

#407

Earlier quoted context omitted.

That blog post was why I decided to not use them too. Specifically their line about > "and we have no interest in living in a sea of mayonnaise." What is that even supposed to mean?? Who refers to people as "mayonnaise"?? While claiming to be against racism??

I read it as a succinct and derisive dismissal of white supremacist beliefs, particularly racial purity.

>racial purity

Not to be confused with the antiracist belief that people shouldn't date outside their race bacause... it's colonialism?

Re: Ask HN: Cheapest/easiest way to host a static site?

#409
Github pages - free

Basic FTP hosting starts from $10 per YEAR so it can be considered cheap as well - just create an subaccount that after login will be in the your page destination so it will be blazing fast to use with w.g. FTPzilla and just drag and drop your files each time you want to update.

Re: Ask HN: Cheapest/easiest way to host a static site?

#410
It's been suggested below, but Github Pages is a total breeze. Find a theme you like, clone the repo, add your domain (and set that stuff up) and get writing.

If you go with Jekyll, it's really nice to work with. I decided to go with GHP over hosting myself in case I ever get super famous, which will most likely never happen.

Ultimately, its easy enough that you can get writing right away. If you decide that the software isn't enough, it'll be a breeze to move somewhere else since its all markdown.

Post reply on HN