Self-hosted infrastructure
I run two Linux servers that host file sync, a password manager, my own mail, several websites and a virtual tabletop. Many of these services are used daily, so I run them with the same care as production systems.
This page describes how they are built.
Overview
p=reject.
Access
SSH with keys only. Password login is off, and both servers have a firewall.
Backups
Both servers are backed up. Off-site backups are on the roadmap.
Principles
- One way in for administration: SSH, with keys only. Password login is off.
- When I rework a service or a job, I move it off
rootonto a dedicated unprivileged user. Foundry VTT and the deploy webhooks currently each run under their own. - Deploys run on push: a webhook tells the server to pull the site I built locally. Nothing is built on the server.
- I remove services I no longer use instead of leaving them running unmaintained.
Domains and DNS
I have several domains, among them dimonte.me and dimonte.ch. DNS for all of them is managed in one place, at Akamai Cloud. The registrations are split between Namecheap and Infomaniak, and I am consolidating them at Infomaniak.
Architecture
Every name is looked up in DNS at Akamai Cloud, then clients connect straight to the server that hosts it. Web traffic uses HTTPS, mail goes only to the VPS, and I administer both servers over SSH.
The two servers
Both servers run Debian, with Apache as the reverse proxy and TLS certificates from Let’s Encrypt, managed by certbot. Both have a firewall, managed with ufw.
Services server. A private machine with a fixed IP. Each service runs in the way that suits it: Nextcloud and the WordPress sites as native installs behind Apache, Vaultwarden and SilverBullet with docker compose, Foundry VTT as a systemd service under its own user, and the blog as static files. Backups go regularly to a second drive in the machine, and over the network to another machine. Neither copy is off-site yet, so off-site backups are on the roadmap.
VPS. A virtual private server at Akamai Cloud. It hosts this website and my mail. Mail runs on Postfix and Dovecot from the Debian packages and is sent directly, with no external relay. SPF, DKIM and DMARC are configured. The DMARC policy is p=reject, and I read the aggregate reports. The VPS is backed up through Akamai Cloud’s backup service.
Services
| Service | How it runs | Used by | Since |
|---|---|---|---|
| This website Personal website and portfolio | 11ty build, deployed by webhook | You, right now | 2020 |
| Mail Mail for dimonte.me | Postfix and Dovecot from the Debian packages, no external relay | Me | 2022 |
| WordPress sites Websites for other people and organisations | Native install behind Apache | Their owners | 2025 |
| Static blog My blog | 11ty build, deployed by webhook | The public | 2025 |
| Nextcloud File sync and sharing | Native install behind Apache | Me and my family | 2021 |
| Vaultwarden Password manager | docker compose |
Me and my family | 2025 |
| SilverBullet Personal notes | docker compose |
Me | 2026 |
| Foundry VTT Virtual tabletop | systemd service under its own user |
Me and my RPG players | 2023 |
Roadmap
- Off-site, encrypted backups.
- Monitoring and alerting.
- Configuration as code with Ansible, so that I can rebuild either server from scratch.
- Deciding whether some services should sit behind a WireGuard VPN, without making access harder for the people who use them.
- Self-hosting DNS, once the current setup has proved reliable.