U6 Security and Services
Self-hosting services your household can rely on
Self-hosting means your photos, notes and files live on hardware you own, under rules you set. It also means you are now the service provider, the support desk and the person who gets the text when it breaks. Choose deliberately.
At a glance
- Self-host what you care about owning, what teaches you something and what you are willing to maintain.
- Before installing anything, decide how you will update it and how you will back it up.
- Choose projects that let you export your data in open formats. Software you cannot leave is a trap.
- Keep household services behind your VPN. Publishing them to the internet is a separate, serious decision.
- Do not run your own email server. Own the domain and rent the mailbox.
Why self-host at all
Online services change their prices, terms, features and owners. They are breached, they shut down, and occasionally they delete the things you bought from them. Self-hosting gives you control over where your data lives and who can see it. It is also one of the best ways to learn how real systems work: a single photo library touches storage, databases, reverse proxies, certificates, DNS, backups and updates.
The cost is responsibility. When you self-host a service your family relies on, you have made a promise about it, whether you said so or not.
Rule of thumb
Before adding a service, ask three questions. Is it useful or fun? Will it teach me something? Can I keep it patched and backed up for years? Two yeses make a good experiment. Three make a good household service.
Services worth considering
If you are starting from nothing, Your First Self-Hosting Weekend walks through the first three services in order. For films, shows and music, see Home Media Stack.
| Category | What it replaces | Notes |
|---|---|---|
| Photo and video library | Cloud photo services | Phone auto-upload, face and object search, shared albums. Usually the most valued service in a household, and the one that most needs a tested backup. |
| File sync | Cloud drives | Peer-to-peer sync with your NAS as the hub. Turn on versioning and snapshot the hub. |
| Notes | Hosted note apps | Prefer tools that store plain Markdown or offer full export, with end-to-end encrypted sync. |
| Feed reader | Algorithmic news feeds | Subscribe to sources you choose, keep a searchable archive and read without the distractions. |
| Password manager server | Hosted password manager | Excellent, but it becomes your most critical service. Plan its backups and access carefully. |
| Media server | Streaming subscriptions for media you own | Serve your own ripped discs and family videos. Keep the media library on the NAS. |
| Collaboration suite | Hosted office and calendar suites | Files, calendars, contacts and in-browser editing in one. Powerful, but a large application to keep patched. |
| Camera recorder | Cloud camera subscriptions | Local recording and detection without monthly fees. See below. |
| Workflow automation | Hosted automation services | Daily reports, health checks and glue between services. Give it read-only credentials wherever possible. |
| Dashboard | Browser bookmarks | A start page that links every service for the household. |
Evaluating a project
Every service you install becomes a dependency. Spend ten minutes judging the project before you spend a weekend on it.
- Activity. Recent releases, responsive maintainers and an active community. An abandoned project collects vulnerabilities nobody will fix.
- Security response. A published way to report vulnerabilities, clear advisories and prompt fixes.
- Data portability. Can you export everything in an open or documented format? Can you import from what you use today?
- Documentation. Clear installation, upgrade and backup instructions, including where data is stored.
- Sustainability. Who pays the developers? Projects with a sustainable model, even a paid tier, tend to outlast hobby projects.
- Official packaging. An official container image or package from the project itself, rather than only third-party builds.
- Resource needs. Distinguish "runs" from "runs well". Minimum requirements are often functional rather than usable.
A deployment pattern that works
- Run services as containers on a dedicated container host VM, one directory per service with its compose file and data. See Containers.
- Put a reverse proxy in front with a wildcard certificate, so each service has a proper name such as photos.lab.example.net. See DNS, Domains and Certificates.
- Store important data on the NAS or in directories that the NAS backs up, with snapshots.
- Back up databases as dumps on a schedule, alongside the data directories and compose files.
- Reach everything over your VPN when away from home.
- Document each service in your service catalog: where it runs, where the data lives, how it is backed up and how to restore it.
Caution
App catalogs on NAS platforms make installing services easy, but some store application data in locations that are not obvious or not included in backups. Several people have lost data after an update because the app was not writing where they believed. Before trusting any service with real data, find its data, delete the service, reinstall it and confirm the data comes back.
Updates are part of the deal
Publicly known vulnerabilities in popular self-hosted applications are found by automated scanners within hours of disclosure. Even behind a VPN, outdated services are a risk to your network and your data.
- Subscribe to release announcements for each service you run.
- Update on a routine, such as one evening a month as part of your maintenance routine, plus immediately for security releases.
- Read release notes for breaking changes and migration steps.
- Snapshot or back up before each update so you can roll back.
- Remove services you no longer use. Every unused service is unpatched attack surface.
Publishing services to the internet
Most household services should never be reachable from the internet. Family members can use the VPN on their phones; once installed, it is invisible. If a service must be public, such as an album for grandparents or a small website, host it on a rented server isolated from home, or publish it through a reverse proxy with strong authentication. Our Remote Access and VPNs guide compares the options.
Email: own the domain, rent the mailbox
Email is the clearest example of a service better left to a provider. Buy a domain you control and put a hosted mailbox on it; if the provider disappoints you, move without changing your address. The reasons are covered in our DNS and domains guide.
Cameras
A local camera system avoids monthly fees and keeps footage of your home off someone else's servers. A few principles from our own installs:
- Put cameras on their own VLAN with no internet access. Only the recorder talks to them. Cameras that insist on phoning home will reveal themselves in your firewall logs.
- Prefer wired cameras powered by PoE. They are more reliable and do not depend on wireless.
- Cover critical areas with fixed cameras. Pan-and-tilt cameras are a bonus; they can only look one way at a time.
- Size storage for your retention. Continuous high-resolution recording fills drives fast. Motion-based recording, lower bitrates when idle and a sensible retention period keep it manageable.
- Use privacy zones for neighbors' windows and similar areas, and check local laws on recording audio, which are often stricter than for video.
- Choose ecosystems that receive security updates, and never expose the recorder to the internet.
Running services for a household
Once other people depend on a service, it is production. Treat it that way.
- Experiment on a separate host or VM, not on the one running the family photo library.
- Schedule maintenance for when nobody needs the service, and tell people.
- Write a short note for the household: what each service is for, and what to do if it is down.
- Make sure someone else could reach your recovery instructions if you were unavailable.
Not everything belongs at home. Our field note When Not to Self-Host covers the services we deliberately leave to others.