News for hackers. Stuff that matters.
Re:Ask HN: Cheapest/easiest way to host a static site? by messo on Friday March 26, 2021 @08:27PM (#26598596)
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 infinity – only to end up never having more than 10 concurrent visitors at any given time.

By accepting and embracing the intermittent and slightly unstable nature of serving websites from our homes, we can take back much of the in(ter)dependence and hacky, quirky fun that many of us fondly remember from the 90's and 2000's.

Setting up a webserver on a Pi and serving it from home can be a fun project, not necessarily trivial for everyone, but definitely within reach for most technically inclined people.

Might be among the cheapest, easiest AND fun ways to host a static site :)

Re:Ask HN: Cheapest/easiest way to host a static site? by 3np on Saturday March 27, 2021 @03:59AM (#26600757)
Adding to this: If you want/need to mask your residential IP, still want access over clearnet, and have e.g. a VPS with a public IP that can front the traffic, the easiest while still robust way I found to do this is to set up a Wireguard VPN and use either microsocks+proxychains, or vopono.

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)

Re:Ask HN: Cheapest/easiest way to host a static site? by morphle on Saturday March 27, 2021 @11:44AM (#26603107)
I have hosted all my websites on a server at home since 1993 until 2021. I never had any downtime or problems. I ran a ISP and datacenter from my home for a decade as well. Nowadays I have a $2 per month VPS to forward a static IP at 1 Gbps to both my home servers and a failover server at a friends home. Works fine up to 600 Mbps sustained web traffic. Its been cheaper than colocation of dedicated servers and much cheaper than hosting in the cloud.
Re:Ask HN: Cheapest/easiest way to host a static site? by Dracophoenix on Monday March 29, 2021 @02:27PM (#26626154)
How does one run an ISP at one's house? Wouldn't you need access to a backbone or peering agreements?
Re:Ask HN: Cheapest/easiest way to host a static site? by morphle on Monday March 29, 2021 @02:39PM (#26626315)
In 1990 I started the first ISP in the Netherlands, I had a dialup modem bank in a spare room after I installed the first hundred phone lines from the trunk line across the street. My backbone was upgraded to a 2 Mbps custom modem to the rail way station nearby. From there we had 2 Mbps modems at every rail way station from Utrecht to Amsterdam and eventually all the way across the country up to Groningen.

I upgraded to a fiber optic line around 1996 straight to the first free internet exchange in the world in Amsterdam, that we started ourselves. There we peered and had transit fibers.

Now I'm laying my own fiber backbone and house to house power router network [1] starting at many internet exchanges (one per country). We combine that with HVDC electricity backbones interconnecting solar and wind to build the first community owned Enernet with 10-80 Gbps internet.

Join us to start Enernet in your neighbourhood and give the internet back to the endusers while also saving each household over $2000 in heating and electricity bills per year.

[1] https://www.academia.edu/download/51128325/Fiberhood_white_p...

Re:Ask HN: Cheapest/easiest way to host a static site? by tdhttt on Friday March 26, 2021 @08:43PM (#26598710)
I am doing this and it's fun! The only hassles I had are a. setting up DDNS (since I don't have a static IP) and b. getting a certificate from Let's encrypt with only port 443 open (80 is blocked by my ISP). But other than that, it has been great! Hopefully my ISP won't have a problem with that ;)
Re:Ask HN: Cheapest/easiest way to host a static site? by jjacobson93 on Friday March 26, 2021 @11:42PM (#26599730)
I just use a script on a cron that runs every 15 minutes and updates my DNS provider. And for let’s encrypt, I use the DNS verification method so you don’t have to even expose HTTP(S) ports if you don’t need to
Re:Ask HN: Cheapest/easiest way to host a static site? by dominikstr on Saturday March 27, 2021 @03:28AM (#26600640)
I wrote a small go app[0] which is invoked every 15 minutes and updates the DNS through the cloudflare API. Its very specific for my use case and ISP but works well.

[0] https://gitlab.com/dominikstraessle/homelab-dns

Re:Ask HN: Cheapest/easiest way to host a static site? by 3np on Saturday March 27, 2021 @11:11AM (#26602861)
Cool! There's also certbot[0] and lego[1] which can do ACME-DNS with a range of providers beside CF. You could also do tls-alpn, which allows you to do do the challenger encrypted on another port. Sounds like DNS works fine for you, but it's primarily worth considering for those issuing certs for non-public names that shouldn't be broadcasted via public DNS.

[0]: https://github.com/certbot/certbot

[1]: https://github.com/go-acme/lego

Re:Ask HN: Cheapest/easiest way to host a static site? by don-code on Friday March 26, 2021 @08:51PM (#26598757)
I'll go one step further: were it not for self-hosting since the early 2000s, I probably wouldn't have a career. My first "server" was a Pentium laptop with no screen. Now I run thousands of servers for a company you've probably heard of.
Re:Ask HN: Cheapest/easiest way to host a static site? by bombcar on Friday March 26, 2021 @09:53PM (#26599141)
I’m going to believe those thousands of sites are still on the Pentium laptop.

https://xkcd.com/908/

Re:Ask HN: Cheapest/easiest way to host a static site? by indigodaddy on Saturday March 27, 2021 @02:22AM (#26600386)
Definitely cool, but personally, I’d rather not open any inbound holes into my home network, no matter how secure I may think it is.
Re:Ask HN: Cheapest/easiest way to host a static site? by messo on Sunday March 28, 2021 @07:38AM (#26609486)
This can be solved by having a separate VLAN for services that are exposed to the internet.
Re:Ask HN: Cheapest/easiest way to host a static site? by bostonvaulter2 on Friday March 26, 2021 @10:17PM (#26599274)
Don't a bunch of residential ISP's not allow HTTP?
Re:Ask HN: Cheapest/easiest way to host a static site? by orthecreedence on Saturday March 27, 2021 @04:07AM (#26600790)
Yes but just in the land of the Free.
Re:Ask HN: Cheapest/easiest way to host a static site? by robtherobber on Monday March 29, 2021 @07:56AM (#26620296)
I must contradict this. Virgin Media (a large UK ISP), as well as other service providers, see running a web server on a residential Internet connection a violation of the Terms of Service.

(Unless I misunderstood your point.)

https://old.reddit.com/r/selfhosted/comments/8cfwmi/any_uk_p...

Re:Ask HN: Cheapest/easiest way to host a static site? by vinay427 on Saturday March 27, 2021 @04:24AM (#26600844)
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? by mod on Saturday March 27, 2021 @09:43PM (#26607288)
Every major ISP I've used has disallowed hosting websites since about 2002 or so when Comcast, my provider at the time, changed their policy.
Re:Ask HN: Cheapest/easiest way to host a static site? by apexalpha on Saturday March 27, 2021 @04:32AM (#26600875)
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? by mmcnl on Saturday March 27, 2021 @06:45AM (#26601362)
That's how I do it. I absolutely agree with the overengineering. I'm pretty confident my low-end Celeron server could handle a large number of concurrent visitors over my fiber connection at home.
Re:Ask HN: Cheapest/easiest way to host a static site? by dn3500 on Friday March 26, 2021 @11:25PM (#26599650)
It's been getting more difficult to host any kind of services at home. My current home internet service is behind triple NAT.
Re:Ask HN: Cheapest/easiest way to host a static site? by 0x426577617265 on Friday March 26, 2021 @11:41PM (#26599724)
I host at home but put a VPS in front of it. Then I use wireguard to route all the connections to my home server. Which goes right thru all that NAT.
Re:Ask HN: Cheapest/easiest way to host a static site? by NickNameNick on Friday March 26, 2021 @11:33PM (#26599689)
I can 'upgrade' to a fixed, routable IP for ~$5/month.

If I switched to a different ISP, I used to be able to get a fixed IP for a one-time $40 fee. I think that offer is no longer available though.

Re:Ask HN: Cheapest/easiest way to host a static site? by wilsonrocks on Saturday March 27, 2021 @02:07AM (#26600315)
Doing this (not a blog but a game of freeciv) is how I got into coding as a career instead of coding as a hobby.
Re:Ask HN: Cheapest/easiest way to host a static site? by Diesel555 on Saturday March 27, 2021 @09:53PM (#26607330)
I do the same thing. The only problem I have is with my mail server. Any email that comes from my dynamic IP address auto goes to junk for everyone. I send probably one every two weeks for password resets.
Re:Ask HN: Cheapest/easiest way to host a static site? by dddw on Sunday March 28, 2021 @04:39AM (#26608848)
Setup dynamic dns , and point your spf to that
Re:Ask HN: Cheapest/easiest way to host a static site? by mro_name on Saturday March 27, 2021 @05:55AM (#26601189)
I wonder if 3rd parties could DOS the telephone (VoIP) this way?

Do you take precautions or just accept the theoretically lower reliability of the phone – which isn't anything reliable anymore anyway, thanks to VoIP?

Re:Ask HN: Cheapest/easiest way to host a static site? by messo on Sunday March 28, 2021 @07:43AM (#26609505)
I do not currently have a VoIP telephone, but don't think it would be an immediate worry as I have a 500/500 fiber connection.