Re:A tiny Docker image to serve static websites
by flatiron on Tuesday April 12, 2022 @08:17PM
(#31009759)
Was it through a VPN? I feel like revealing my home IP to random people on the internet is a bad move.
Re:A tiny Docker image to serve static websites
by marginalia_nu on Wednesday April 13, 2022 @04:36AM
(#31012399)
No VPN. I have the ports fairly well tightened down, though. I'm exposed to a zero-day in iptables itself or something, but whatever. Even if someone got in it would be an inconvenience at worst. It's not like I'm making money off this stuff.
Re:A tiny Docker image to serve static websites
by lostlogin on Tuesday April 12, 2022 @02:19PM
(#31006437)
Are you able to describe how you run yours? I scummed your blog but didn’t see anything about it.
Re:A tiny Docker image to serve static websites
by marginalia_nu on Tuesday April 12, 2022 @02:29PM
(#31006560)
The static content is just nginx loading files straight off a filesystem. The dynamic content (e.g. the search engine) is nginx forwarding requests to my Java-based backend.
For static websites, CDNs are largely unnecessary. My potato of a website hosted from a computer in my living room has been on the front page of HN several times without as much as increasing its fan speed.
It took Elon Musk tweeting a link to one of my blog posts before it started struggling to serve pages. I think it ran out of file descriptors, but I've increased that limit now.