Live data from Hacker News

Self hosting in 2023

grifel.dev

21–30 of 307 posts

Re: Self hosting in 2023

#21

This is amazing. More devs should build stuff like this for themselves. On the extreme one of the scale there is the amazing Andreas Kling building his own operating system. Building a whole system will give you unprecedented control and understanding. That is what being a hacker is all about.

Having a server under your hand and deploying other things than webpages to automate your infra and life is a very underrated experience. I don't host my pages myself, but the server(s) I have power the invisible infrastructure which accelerates my life a lot.

Infra such as? Just interested out of curiosity. You can keep it vague if you prefer…

Re: Self hosting in 2023

#22
post #16

The blog that you are currently reading has a perfect PageSpeed score 100 / 100. Unfortunately, no it doesn't. The page that has this blog post scored 95 in performance for mobile in one run and 86 in the next. It scored 91 for desktop. They'd get a higher score by adding text compression and by serving static assets (all of them?) with an efficient cache policy.

You were there looking over their shoulder when they wrote "At least at the moment of writing it", and are asserting they are lying?

Re: Self hosting in 2023

#24
I self host and use a RPi 3B+. Actually I have a total of 3B+ but only one is actually doing anything for the website. I have my database running on a RPi 4b with 4gb. I could easily consolidate to a single Pi but early on I had different plans for each one but just keep 'em running for no good reason.

I'm fortunate in that I have a static IP. Initially I was using NOIP and it worked great but then noticed my IP address never changes. Also, NOIP still exposes your actually IP which I didn't care for.

Now instead of NOIP I rent a cheap $4/month VPS with nginx to reverse proxy to my home. This does require me to open a port, which again I'm not a huge fan but it is what it is.

My next iteration will be where I close the port and do updates via SSH. I'm the only one who uses my website so it is more of a playground for me than anything.

Finally, I feel setting up a server - or just interacting with a remote computer, be it across town, across the country or in the other bedroom, is a good skill to have. When I got my 1st remote job that gave me access to a server I was more than comfortable to do what I needed to do.

Re: Self hosting in 2023

#25
post #20

Wanted to clarify some of the points raised about Next.js: > I’ve been using Next.js for a while and hosting the apps built with it on AWS with custom express servers. One day I’ve noticed that my servers are getting red-hot while doing almost nothing, and response times got huge. OP mentions they're hosting a static website now but must have previously been rendering a server-rendered page. It's not clear whether th…

Wow. Didn't expect a response directly from Next.js VP!

Before anything I wanted to say that I love Next.js and I'm using it in my projects daily. It's definitely the best solution right now at the market for the project types me and my company is producing :).

In regards to the inconsistencies in the article. Yes it was a server rendered page, not this particular blog. A much more complicated project.

Also I didn't want to sound as if the regression was handled badly. Quite the opposite, as soon as I've pinpointed the issue and was able to create a good Issue in the tracker the response was very swift!

And I understand that the regressions will keep on happening. I've been building apps for long enough to see waaaaay bigger problems slip into production. So no hard feelings!

Re: Self hosting in 2023

#26
post #24

I self host and use a RPi 3B+. Actually I have a total of 3B+ but only one is actually doing anything for the website. I have my database running on a RPi 4b with 4gb. I could easily consolidate to a single Pi but early on I had different plans for each one but just keep 'em running for no good reason. I'm fortunate in that I have a static IP. Initially I was using NOIP and it worked great but then noticed my IP addr…

how would noip work if it didn't expose your ip? This statement confuses me. It's funny how used laptops that are 10x faster than an rpi4 are about the same price. Obviously they use more power though :)

Re: Self hosting in 2023

#27

One thing to be mindful of is security. The last you want is for your setup to be compromised, be used to send spam/botnets and then getting perma-banned from your ISP. I would argue it's a lot less risky just to put your static site on S3/Github etc.

As mentioned in the post. I would probably not use this setup with my more "exposing" projects like full web apps.

Re: Self hosting in 2023

#29
post #8

Earlier quoted context omitted.

With dynamic dns static IPs are not as critical. Most routers support them natively. What it does is quite simple - every time the router receives a new IP, it updates your dns entry. Not to mention that most “dynamic” IPs change only while the router is offline and your lease is up. So as long you don’t power it off, it may not change for large intervals of time.

I have had my "dynamic" IP for two years now. I even managed to keep it when I moved to a new unit in the same appt complex

My home network also seems to have no problem holding an ip despite being dynamic. I usually have to change the mac on my router before I'll get a new ip. In 15 years, I think I've only had it change unintentionally 2 or 3 times.

Re: Self hosting in 2023

#30

> Turns out in 21st century you can even update [Raspberry Pi] without downtime. Hopefully I didn't just miss it in the article, but... how?

Kernel care is apparently free for the raspberry Pi

https://tuxcare.com/patch-raspberry-pi-systems-without-a-reb...

Also I think you can use Ubuntu PRO on the pi, which includes Livepatch.

Post reply on HN