Live data from Hacker News

Raspberry Pi as a local server for self hosting applications

cri.dev

161–170 of 321 posts

Re: Raspberry Pi as a local server for self hosting applications

#161

Earlier quoted context omitted.

I have a Pi4, 4gb model running my NextCloud instance in a docket container, along with pihole and home assistant in another folder. It’s always run perfectly fine for me and my needs, and I even tested having shared video calling in NextCloud and it continued to work great. I’m not sure your configuration, but it might be worth trying on a Pi4?

I was using the pi4 with 4gb ram. Were you booting of an sd card? That might have been my issue.

Booting off an SD card. I need to change that, but I’m lazy.

I do treat it like I would a Dropbox. I store photos I want to save, documents I want to save, etc. I was using it for recording trips for a brief bit, as well.

I’ve used it to share pictures with friends from our hikes, and I’m on a very fast internet connection.

My usage loads might be sufficiently low to not be a problem. I’m not constantly streaming from it like LTT does their NAS. For major software projects, I might use it as a remote git repo.

I probably have a high speed SD card.

There are times when it’s slow, but not too often. I forget what I’ve done to resolve that.

Also, running the NextCloud app on my computer has never been slow and that’s my normal use case for file management on it.

Re: Raspberry Pi as a local server for self hosting applications

#162

The hardware is there (RPi + USB storage). The server software is there (NextCloud, Plex, n8n, etc). What isn't there is the plumbing. The next logical step after this blog post is making your services accessible to your phone over the public net. You'll immediately find yourself mired in domain name registration, VPS management, TLS cert management, dyndns, port forwarding, hole punching, etc etc. There are lots of…

I tunnel everything through webRTC. It's a bit exotic but it gets you a direct bidirectional data connection to the self hosted device. You can put all users' self hosted content through a single domain name & SSL cert or you could have subdomains automatically provisioned for each device.

I'm using this WebRTC method for 3D printers at https://tegapp.io

Re: Raspberry Pi as a local server for self hosting applications

#163

How do people access these servers off of their home network (or do they not?). That seems like most of the value to me, hosting some service you can access from anywhere without having to use Digital Ocean. It seems like most residential ISPs don't provide a static IP and some block port 80? I think forcing ISPs to allow home users to serve traffic via some standard method would go a long way to enabling a more dece…

My dynamic IP address with Comcast is pretty much static but I guess it is not a guarantee... I can get it to change by spoofing my router MAC address though.

Re: Raspberry Pi as a local server for self hosting applications

#165

The hardware is there (RPi + USB storage). The server software is there (NextCloud, Plex, n8n, etc). What isn't there is the plumbing. The next logical step after this blog post is making your services accessible to your phone over the public net. You'll immediately find yourself mired in domain name registration, VPS management, TLS cert management, dyndns, port forwarding, hole punching, etc etc. There are lots of…

HomeDrive ( https://www.homedrive.io ) is plumbing exactly this! We are currently only hosting Nextcloud, but we plan to support more apps and custom dockers. It is as easy as plugging the box into the home router.

There are still many features to implement, but we are working towards "easy self-hosting at home", and looking for early adopters.

Re: Raspberry Pi as a local server for self hosting applications

#166
post #66

One thing to watch out for when doing something like this is that the Raspberry Pi will by default put your file system on the SD card it boots from. SD cards aren't meant to support a lot of write/erase cycles, so it's easy to end up with a corrupt SD card after a few months to a year depending on what you're doing on your Pi. A workaround that can save you some headaches here is to only boot from the SD card (which…

Very true for a given value of true 8) You need to evaluate all the components. The RPi itself is a decent piece of kit, well tested and safe to use. Get a decent power supply to it - either a RPi branded one or at least a decent mobile charger from a brand that you trust. I generally use a decent USB stick nowadays. RPi 4 from about a month or so ago onwards will do this out of the box. You can also put a second USB…

I am curious why you would use a fleet of them instead of a larger server.

Re: Raspberry Pi as a local server for self hosting applications

#167
post #62

Earlier quoted context omitted.

I’m using a 3$ VPS (hetzner) as a VPN server and access my local servers that way. You also get a regular VPN for free that way and setup is trivial if you use wireguard.

I use a $15/year vps for this. Acts as a bastion to all the servers I connect to.

Where did you get $15/yr VPS?

Re: Raspberry Pi as a local server for self hosting applications

#168

The hardware is there (RPi + USB storage). The server software is there (NextCloud, Plex, n8n, etc). What isn't there is the plumbing. The next logical step after this blog post is making your services accessible to your phone over the public net. You'll immediately find yourself mired in domain name registration, VPS management, TLS cert management, dyndns, port forwarding, hole punching, etc etc. There are lots of…

Caddy?

https://caddyserver.com/

Re: Raspberry Pi as a local server for self hosting applications

#169

Earlier quoted context omitted.

Or just setup Tailscale, which takes about two minutes.

Wow, yeah Tailscale looks like it basically does everything you'd want for this: https://tailscale.com/blog/how-tailscale-works/ I didn't even realize this was possible: https://tailscale.com/blog/how-nat-traversal-works/ I had seen some of the people working there comment on twitter, but I don't think those blog posts were written when I last looked them up and I didn't understand what they were actually doing. This…

When I was young I served my websites off my home network. Dynamic DNS would update my A record if my IP changed, but I managed to trick my ISP into effectively giving me a static IP. DMZ'd a host on my network and set up a firewall, and you're off to the races.

Nowadays I just pay for a $5 VPS somewhere -- my uptime is significantly better this way!

Re: Raspberry Pi as a local server for self hosting applications

#170

The hardware is there (RPi + USB storage). The server software is there (NextCloud, Plex, n8n, etc). What isn't there is the plumbing. The next logical step after this blog post is making your services accessible to your phone over the public net. You'll immediately find yourself mired in domain name registration, VPS management, TLS cert management, dyndns, port forwarding, hole punching, etc etc. There are lots of…

ZeroTier might solve some of this.
Post reply on HN