↓ Skip to main content

Series

Self Hosting

A hands-on guide to a server setup for personal use on a single VPS, built with security and reliability in mind.

  • 23 parts
  • 142 min of reading
  • Updated 21 November 2026

In this series I look at what you can self-host on a VPS and how to do it, in a technical and hands-on way. The server, the assumptions and the roadmap are in the first part: 0 Planning and Architecture.

How to read this series

Parts with a decimal number (like 2.1) continue their parent topic. The Requirements box at the top of each part shows which parts should be done first.

Series map

  1. 0 Planning and Architecture The server used in this series, the assumptions and conventions, and the roadmap of the series. 4 min read
  2. 1 Post-Install Configuration First checks and basic settings on a freshly installed Rocky Linux 10 server. 7 min read
  3. 2 Mail Server Setup The first main service on the server: a mail server with iRedMail. This setup also installs NGINX and MariaDB. 9 min read
    1. 2.1 Setting Up SSL for the Mail Server Getting a Let’s Encrypt certificate for mail.xenonly.com and renewing it automatically. 3 min read
    2. 2.2 Adding a New Domain to the Mail Server Adding a new domain to the mail server: iRedAdmin, a DKIM key and DNS records. 5 min read
    3. 2.3 Using a Mail Client Connecting to the mail accounts with any mail client that supports IMAP, like Thunderbird. 2 min read
    4. 2.4 Moving the Mail Server Moving the mail service to another server together with its database, Maildir and DKIM keys. 5 min read
    5. 2.5 Extra Settings Adding an alias, auto-completing the username in Roundcube, cleaning up the passwords the installer left in plain text and limiting how much mail an account can send. 11 min read
  4. 3 NGINX Configuration Turning the NGINX setup that iRedMail installed into one that can serve many services and virtual hosts. 9 min read
  5. 4 Docker Setup Installing Docker and setting it up so that containers are reachable only over localhost. 3 min read
    1. 4.1 A Ready Template for Docker Containers A port plan for the containers and a shared NGINX proxy template with WebSocket support. 2 min read
  6. 5 Firewalld Configuration Configuring and turning on Firewalld, which we kept off during the setup, and blocking containers and VPN clients from sending out on port 25. 6 min read
  7. 6 Fail2Ban Configuration Adding longer and longer ban times for repeat attackers to the Fail2Ban that comes with iRedMail. 2 min read
  8. 7 WireGuard Setup A VPN server: sending clients to the internet through the VPN, letting clients talk to each other and making some services reachable only over the VPN. 7 min read
    1. 7.1 Adding WireGuard Clients Adding WireGuard clients by hand and with a script; desktop and mobile clients. 10 min read
    2. 7.2 Putting Services Behind the VPN Making SSH and NGINX virtual hosts reachable only over the VPN. 6 min read
    3. 7.3 Possible Problems Reaching services behind the VPN with a split tunnel, and the access problem when two VPN profiles are on at the same time. 6 min read
  9. 8 Vault Setup Keeping secrets (API keys, tokens, passwords) in one central, encrypted place with HashiCorp Vault. 6 min read
  10. 9 Vaultwarden Setup Installing Vaultwarden, a Bitwarden-compatible password manager. 8 min read
  11. 10 WordPress Setup A WordPress setup where every site runs in its own container and all sites share one MariaDB container. 10 min read
    1. 10.1 Moving an Old WordPress Site into This Setup Moving a WordPress site from an old server into this setup, with its database and files. 11 min read
  12. 11 Usememos Setup Installing Memos, a note app you can host yourself. 2 min read
  13. 12 Syncthing Setup Syncthing for syncing files between devices; the server is the shared peer that is always on. 8 min read