Self-hosting, described at role level
Most homelab (privately operated servers and network equipment) write-ups are inventories: every hostname, every VLAN (logical network segment sharing physical network hardware), every IP range. That's satisfying bookkeeping and an unnecessary gift to anyone probing the setup. This note tries the opposite: describing the infrastructure entirely by what each part is for. If a detail only matters when you know where something lives, it isn't in here.
Why two environments
Everything runs in one of two places: a local environment at home, and a hosted one in a datacenter. The split follows from what each side is good at.
The hosted environment has the stable address and the fat pipe, so it owns everything the public internet is allowed to touch. The local environment has the storage and the physical access, so it owns data-heavy and private workloads. A site-to-site VPN (a private routed connection between two networks) gives them routed private connectivity. The services meant to talk across it can, everything else can't, and nothing management-shaped is reachable from outside. Treating a tunnel as permission to flatten the network is lazy security: the tunnel carries traffic between the sides, and what may cross it is still decided service by service.
The roles
Five roles cover almost everything, and most exist on both sides:
- Ingress. Reverse proxies (a server that receives requests and forwards them to internal services) terminate TLS and route requests by domain in both environments, and only the hosted proxy accepts public traffic. A service that isn't behind it isn't public.
- DNS. Internal name resolution runs in both environments, so services on the private network find each other by name.
- Monitoring. One system watches both sides. An environment that only reports on itself can't tell anyone when it goes down, and the monitor has the same blind spot about itself, which is what outside-in checks are for.
- Backups. Two layers, two restore paths: VM-level backups for whole-machine recovery, plus filesystem snapshot replication (copying point-in-time filesystem states to another location) for the data underneath. The layers stay apart, because they only count when one compromise can't reach both.
- Workloads. Everything else: git hosting, mail, the agent tooling, media, and the applications described on /projects.
The boundaries
The rules that make the setup boring to operate:
Public and private don't mix. Public traffic enters through the hosted ingress and nowhere else. Management interfaces, hypervisors (software that runs and isolates virtual machines), and storage are only reachable over the VPN.
Every workload gets the cheapest boundary that still isolates it. A small trusted tool runs as a systemd service in an existing guest, or in an unprivileged LXC container if it wants its own Linux userland. Dependency-heavy third-party apps that ship as images go in Docker inside a VM. Anything internet-exposed or untrusted gets its own VM. The full decision tree, Docker included, is in VM, LXC, or Docker container.
Backups only count once I understand the restore path. A green backup job means the job exited cleanly. Whether the data restores is a separate question, and a wall of green check marks can sit on top of unrestorable garbage. I work out each restore path ahead of time and run one now and then, before something forces the issue.
What this buys
Describing infrastructure by role is an opsec (practice of limiting information that could help an attacker) habit that doubles as a design test: if a part only makes sense once you know its hostname, it never got a role and just accumulated. The version above fits on a page, and the real setup follows it.
The short version, plus the hardware itself, is on /about.