Do you host your own server on a raspberry pi? How do you deal with non static ip? Is it safe to self-host?
Sorry for dumb questions but that could help us with server charges.
What material do you advice?
Thank you for your contributions.
@apps ISPs generally don't mind giving you a static IP address instead of a dynamic one, you just have to ask.
Self-hosting is safe as long à you remember to keep your system up to date.
A Raspberry Pi is OK for a small server but will struggle to handle a heavy load, so consider usage and requirements before choosing your hardware.
@Whidou
Thanks for the advice.
@marcelcosta
Yes. You're right. And that would be easier to save data without paying extra services.
@Whidou
@apps @marcelcosta @Whidou with regard to the SD card, it is possible to use the SD card for boot partition only and have everything else on an SSD connected to one of the USB3 ports. On the 4B, power over USB is enough to power an SSD as well. I run a Nextcloud server and a Lightning node on separate 4Bs with terabyte SSDs.
USB 3 also seems to be faster than SD on the Pi, so performance is another reason to limit what's on the SD card.
@apps not just for myself, but everyone else that wants to think along; what do you specifically want to run on your #RPi? Which RPi do you have or want to purchase?
You can give any device a static address, I prefer giving it with the router by MAC address filtering. Or do you mean your home connection not having a static address?
@RyuKurisu
Yes, I thought to buy a #RPI because I have no other devices that are done to be turned on h24.
I have no idea of what model should be used and the price.
But we do need to find alternative to services that we currently use.
@apps
Honestly, I think that an used notebook is a better choice, since it's way more powerful and (probably) way cheaper than the Raspberry Pi. My stuff is running on a 40€ notebook with a low-tier i3 from 2014 and it's doing a great job. It is also pretty power-efficient. You can also upgrade a notebook easily (storage and ram).
@RyuKurisu
@apps You can even buy a broken notebook with a smashed screen and/or a non-working keyboard.
@apps I use Google Domains which has a easy to use interface for updating domain records with a non-static IP.
But I only use it for me and my partner so far, so it hasn't been stress tested.
@wilbowma
Thanks, but we would like to avoid Google stuff. A lot of our users (especially Fdroid ones) don't want to see any links to Google.
@apps Fair
@otso
Yes, seems to solve dynamic issue with IP.
@apps depending on your domain registrar's API, you could update your DNS records everytime your IP changes directly. [This tool][1] works well with gandi.net for example.
@apps Server for what exactly?
@raucao
For hosting https://translate.fedilab.app and https://plan.fedilab.app
@apps A cheap VPS would be much more suited for those in my opinion. Raspis are great for personal use cases, but not for hosting services for many other users.
@apps Have you asked https://fosshost.org if they may be able to help somehow?
@raucao
Yes. They never replied to our request.
@apps Aw, shucks.
But for $5/month you would probably be able to host both of those on a VPS from e.g. https://www.linode.com
@apps I am in the process of (as time permits) migrating services I've hosted from virtual machines on a couple of10 year old Supermicro servers in my garage to a cluster of little ARM SBCs. You obviously have to watch things closer than cloud compute instances but in my 20+ years of hosting from home it has been safe and functional enough.
If you have reasonable firewall rules...and if you want added peace of mind and intrusion detection system like Zeek or whatever...it isn't all that risky for smaller, lower traffic sites. It only becomes a problem for really big well known high traffic websites which attract bad actors looking for high impact targets.
Your internet service may need an upgrade depending on what you currently have. I have always had "small business" internet service which offers a fixed IP and permits servers listening on standard ports, though upload speed is not quite what I want it is adequate. A local ISP is rolling out symmetrical gigabit fibre which I will be moving to...
@apps ...if ISPs in your service area are unwilling to provide "small business" level service to your location, or the cost difference is too high, you could always get a minimal $5/month VPS and set it up as a tunnel/vpn server with a reverse web proxy to your home rig tunnel/VPN client(s). That would get around the dynamic IP and blocked ports of home internet service and keep cloud hosting costs to a minimum.
@apps how is a non-static IP related to a pi? ;)
I have a server with a non-static, daily changing ip. With dynamic-dns this is usable. If you are able to determine when your ip change happens, it is possible to do this with ~2-3 mins downtime per day. It is merely impossible without at least a little downtime.
In my case it is a private server that is not used at night when the ip change takes place. Can't tell you anything about pi, not using any anymore.
@apps But wouldn't a cheap VM be much more practical? You can get those for 2-3€/month.
@apps I've been running several self-hosted applications, such as cloud storage, for my family in past few years... in a cheap NAS hardware (ARMv7 Processor / 1GB RAM). It runs from my house non-stop in a non-static ip... Nice and cheap solution to this was to buy a domain from namecheap (which is cheap and nice panel), and you can setup infinite subdomains for free, each having dynamic dns support. Any questions, feel free to ask.
@apps openwrt router with ddns client that updates a corresponding record in my BIND. works like a charm but took a bit of tinkering. Any ddns service should do though.
@apps look into #yunohost. All this "boring" stuff built in
yunohost.org/
I use it to host many things on an extra computer at home.
@apps I have some thoughts to share on this but I'm exhausted from moving all day. Will reply when I have rested and have clear head.
@apps
I have been using cloudflare tunnels which works quite well.
@apps
pros of selfhosting:
+ independence
+ MAYBE lower cost
pros of a cheap VPS:
+ stable internet connection
+ stable connection speed
+ static IPv4/IPv6 (no need for dyndns)
+ data savety (runs already on a RAID)
+ easy framework to create and roll back snapshots
Doing your selfhosting *right* is not that trivial.
I'd suggest to go for a small VPS. It should not be that much more expensive than a selfhosted system.
@apps
I use a raspi 3 at my home router with DynDNS in conjunction with free noip.com for the dynamic IP issue. Performance is horrible, though. If it was for anything public I would upgrade (to not-at-home hosting most likely).
@apps
I doubt the reverse-proxying required by ActivityPub would work on a domestic internet connection?
@apps Did you need help to manage your server ? Pleasure to help you in any case.
For non static IP I recommended to use a dynamic DNS services like duckdns.