Ask HN: What's on your home server?
519 pointsIt's been years (over a decade?) since I've had a server at home but I'm setting one up for media and I got to thinking: what else should I do with this box? So I was wondering what cool/nerdy/weird stuff you all are using home servers for. DNS and file sharing seem like obvious applications I could set up. I already run email and web on a VPS so that's taken care of. What are you doing with your home server?
Comments (456) 205 threads
Earlier commentsLOCALLY (in my homelab)
- Startpage, with Heimdall: https://heimdall.site/
- Backups, with BackupPPC: https://backuppc.github.io/backuppc/
- Twitch stream and YouTube video backups, with PeerTube: https://joinpeertube.org/
- File sharing for larger files, with Nextcloud: https://nextcloud.com/
- Chat solution, with Mattermost: https://mattermost.com/
- Project management, with OpenProject: https://www.openproject.org/
- CI runners, with Drone CI: https://www.drone.io/
- Minecraft servers, with docker-minecraft-server: https://github.com/itzg/docker-minecraft-server
- Static code analysis, with SonarQube: https://docs.sonarqube.org/latest/
- Uptime monitoring, with Uptime Kuma: https://github.com/louislam/uptime-kuma
PUBLICLY (in rented VPSes)
- Code repositories, with Gitea: https://gitea.io/en-us/
- CI, with Drone CI: https://www.drone.io/
- Package/container management, with Nexus: https://www.sonatype.com/products/nexus-repository
- File sharing, with Nextcloud: https://nextcloud.com/
- Link shortener, with Yourls: https://yourls.org/
- Mail server, with docker-mailserver: https://github.com/docker-mailserver/docker-mailserver
- Analytics, with Matomo: https://matomo.org/
- Container management, with Portainer: https://www.portainer.io/
- Server monitoring, with Zabbix: https://www.zabbix.com/
- Blog, with Grav: https://getgrav.org/
My homepage and some other projects as well. I manage most of these as Docker containers (with Swarm, though K3s is great too), so thankfully handling data backups and resource limits is pretty easy. Currently, I use Apache as the reverse proxy in front of all of these (lots of modules for a variety of features, as well as Let's Encrypt integration with mod_md). So far it seems to work decently, isn't too expensive, helps me avoid e-waste (homelab nodes run 200 GE CPUs with 35 W TDP), although updates are always a pain.
The blog has more information about some of these pieces of software, in case anyone is interested: https://blog.kronis.dev/
For example, previously I ran GitLab, but Gitea + Drone + Nexus proved to be a better solution for my needs and workloads.
Instead many posts are a collection of corporate buzzwords as people are bringing home their jobs, from k8s to vmware to Jenkins.
Admittedly the upvoted posts improved a lot after the first hour tho.
Here's my setup.
I have a mini-pc with 32gigs of ram running as my combo "compute" and "storage" server.
It has an attached 5 bay enclosure with 8TB of storage on it.
On it I run
- Caddy to host static sites (my blgo) and to terminate HTTPS for other services - audiobookshelf (mostly unused)
- calibre-web (organizes ebooks)
- diun (notifications about docker image updates)
- gitea (personal git repos, mostly useless honestly but I do put some things in here before they go to GitHub)
- home-assistant (heavily used)
- mealie (heavily used)
- mpd (music player daemon, moderately used throughout my house)
- a VPN container for things that I want to only run inside a VPN and never when the VPN is down
- plex (heavily used to organize and play media elsewhere in the house)
- postgres
- scrutiny (for consolidated reporting of disk issues across my machines)
- shiori (read-it-later style bookmark manager)
- snapcast (coordinates multi-room audio throughout my house on a bunch of raspberry pis attached to speakers, heavily used)
- syncthing (heavily used)
- vaultwarden (heavily used)
- woodpecker (self-hosted CI, moderately used)
- zwave-js-ui (manages the zwave based smart home devices I have...about 20 or so)
My router/firewall is a separate devices running OPNsense and I use Wireguard to remote in - also works wonderfully.
I run all the services with docker-compose. The server itself is a bit of a snowflake but all the critical parts of the services are in their respective docker directories so backup is a snap (aside from postgres which has a separate backup process).
Currently I'm working on documenting a recovery procedure for Vaultwarden from our Backblaze backups so that in the event something happens to me my wife will be able to recover the Vaultwarden instance and our passwords. That's a fun exercise in documentation and simplifying the process.
Snapcast has really been a dream for multi-room audio setup. It presents a Spotify Connect device to anyone on my wifi. It has a separate stream which comes from whatever is being played on MPD and it is easily configured to play audio from whichever of those two streams is actively playing music...so I don't have to manually switch between them.
Caddy has been great for organizing everything and ensuring each service has HTTPS. I understand Traefik is somewhat more purpose built for doing this with a bunch of containers but I haven't had a need to switch.
I do use https://github.com/lucaslorentz/caddy-docker-proxy for letting the containers themselves describe their respective domains and mapping.
I do have a VPS and use it for the occasional site that needs to be more reliable than my home internet (which itself is quite reliable but I'm not counting 9s there). More and more I find I'm comfortable putting random static sites on my machine at home, though.
Parting thought: Exposing all of these details is a bit of a security concern, for sure. But ultimately I think it's (a) Not a huge security concern -- I need to assume any attacker knows what I'm running anyway, and (b) part of the fun is talking about it so I lose some value if I don't.
Current active services, all docker containers:
- Unbound DNS server - resolves names from the root servers and resolves my local domain and external home domain to local IPs for compat reasons - will be moved to RPi or Rock Pi due to routing issues with Docker containers
- Syncthing - backup pictures from my phone to the server
- Gitea - hosts a mix of private and public repos, automatically mirrors some Github repos (came in handy when Automatic's SD webui got removed)
- Plex - serves the TBs of media I store on the server, used by me and very occasionally by my parents
- SWAG (nginx with letsencrypt integration) - serves as the reverse proxy for all services, small detail: I use a wildcard subdomain and certificate to prevent service names from being visible via certificate transparency
- Home Assistant (as VM) - home automation etc., ZigBee gateway is a rooted Silvercrest (Lidl) gateway, see [1] (not my page, very useful), also serves as the MQTT server for anything automation related
- Rhasspy voice assistant - main node runs as Docker container on the home server, 2 satellites based on RPis (one in bedroom, one on my desk for tinkering), some more details on the setup at [2]
- PhotoPrism - new service, hosts some pictures, not sure whether I will keep it, automatic content recognition is nice, worked decently with my cat pics
- mStream - lightweight web interface to stream audio, also have the app on my phone
- MPD - media daemon, can be used via home assistant as media source and from my RPi connected to my HiFi (HA can start/stop/volume control, RPi has a web interface for music selection, can also play internet radio via HA)
- OpenVPN (legacy) and Wireguard VPN endpoints
Disabled services:
- Gitlab - playground so I can test things without screwing up the production environment at my company
- 7DaysToDie - game server for some friends
- AMP - multiple game servers, usually hosts Minecraft server(s) for some friends
- Empyrion - game server for some friends
- OpenStreamingPlatform - think Twitch, but self hosted, I messed up some config and have not recovered it
- SFTP server - unused offsite backup
As you can see, I am very much in the self hosting camp. The server is my home lab for testing things and gets new services as I "need" more functionality.
[1] https://paulbanks.org/projects/lidl-zigbee/ha/ [2] https://news.ycombinator.com/item?id=33708421
All comments shown.
Couldn't load more comments. Check your connection and try again.