News for hackers. Stuff that matters.
Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by bpizzi on Monday October 26, 2020 @08:04AM (#24895195)
I don't get it, I may be missing some context thought: why the author didn't go for running said webapps directly on the VPS in the first place? Why bother running it on the Pi and set up the tunnel (which is a nice hack in itself, I get that)?
Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by anderspitman on Monday October 26, 2020 @04:10PM (#24900749)
For me it's primarily 2 things:

1. I have much better hardware in my house than any VPS can offer at a competitive price. This is particularly important for storage. Object storage like S3 is relatively cheap, but I just want a file system I can slap a static server (or whatever else I want) in front of. If you go for full block storage the price is way higher, and performance still isn't as good as a local SSD.

2. I hope the future of the internet involves more people self hosting over IPv6. I see tunneling solutions as an intermediate step to that world. If we make it easy for people to self host, it might even be able to help drive IPv6 adoption.

Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by crusso on Monday October 26, 2020 @08:13AM (#24895254)
Perhaps the Raspberry Pi is used to control a robot, collect sensor data, whatever. Perhaps it was just for the fun of it.

I've used similar techniques for doing a wide variety of operational tasks, so it can be worth it to take the time to figure out how to easily set up tunnels and reverse proxies.

Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by bityard on Monday October 26, 2020 @01:04PM (#24898392)
One use case is the cost of RAM when you buy a VPS. Low-end VPSes are cheap ($5 a month and under) but if you have multiple apps (or one big one), getting a decent amount of RAM in a VPS raises the price significantly.

Using Linode as a benchmark, a 512 MB VPS is $5/mo but an 8 GB VPS is $40/mo. But an 8 GB Rasberry Pi 4 is well under $100 with peripherals so after three months it will have paid for itself.

This of course assumes:

1. that the cost of powering the Pi is negligible 2. your home internet connection is stable enough and fast enough 3. your apps run as comfortably on the Pi as on VPS

Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by lights0123 on Monday October 26, 2020 @08:11AM (#24895239)
Something that requires LAN connectivity: media library off a local NAS (e.g. Plex), generic storage (e.g. Nextcloud), or home automation (e.g. Home Assistant).
Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by berkes on Monday October 26, 2020 @09:09AM (#24895742)
Interesting solution. Also as alternative to a VPN.

A VPN is often just too complex to set up, and also requires some hardware in your local network; though often your router will have that already. Off course a Rpi can act as VPN gateway/server.

But solving it by flipping the "servers" around and running the "appserver" in your network then tunneling it to remote seems a really neat hack to avoid going into VPN hell.

Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by flatiron on Monday October 26, 2020 @10:01AM (#24896228)
Just VPN the VPS? At least my router supports openvpn right on the device. Generates the config for you and everything.