49 lines
2.9 KiB
Markdown
49 lines
2.9 KiB
Markdown
# Ianitor Domi
|
|
|
|
*Ianitor* (Latin: the doorkeeper) is the reverse proxy of a home server. It decides which name goes to which
|
|
service, with which certificate, and who has to sign in first. Every change is tried before it stays.
|
|
|
|
- **Hosts in plain words.** Add a host, say where its traffic goes, and pick a Domi or Let's Encrypt certificate.
|
|
Choose whether visitors sign in first (Authelia forward-auth). Each host is checked for health and shows as
|
|
healthy, degraded or down.
|
|
- **Changes that undo themselves.** Every change is compiled, tried, and watched for 60 seconds. If a host stops
|
|
answering, the change is reverted on its own. Routes live in a git repository, one file per host, with Undo and a
|
|
history you can restore any kept version from.
|
|
- **Two engines.** Cloudflare's Pingora serves. Caddy is built from the same routes, compared with Pingora host by
|
|
host, and can take over at runtime in about two seconds.
|
|
- **The Domi certificate authority.** It issues certificates for hosts reached only from home, and device
|
|
certificates (mTLS) for phones, computers and Domi apps. They come from an intermediate whose root stays offline.
|
|
- **Share links**, signed and time-limited, for a single host.
|
|
- **Every action in three clicks or fewer**, in a dark web UI that only the signed-in owner reaches.
|
|
|
|
## For whom
|
|
|
|
For someone who runs services at home (a wiki, photos, music, cameras) and wants each one to have a name, a
|
|
certificate and a sign-in, without editing a proxy's config by hand and without a change that breaks the house.
|
|
|
|
## Installing
|
|
|
|
Ianitor runs on NixOS. There is nothing to download and run: the server builds it from source with Nix.
|
|
|
|
1. Add the flake `git+https://gitea.marek-novak.cz/mnovak/Ianitor.git` as an input of the server's flake, and
|
|
import its module `nixosModules.ianitor`.
|
|
2. Set `services.ianitor`: `enable`, the edge's listen addresses, the routes repository, the share-link key file
|
|
and, for the Domi CA, `pki`. Keys and passwords come from files the system provides (sops, systemd
|
|
credentials), never from the Nix store. Then rebuild.
|
|
3. Open the UI's name in a browser and sign in through Authelia.
|
|
|
|
Ianitor can run beside an existing Caddy first, taking over one host at a time. Updates are a deploy: the server's
|
|
flake input moves to the new commit and the system switches, and switches back if the health check does not answer.
|
|
|
|
## System requirements
|
|
|
|
- NixOS on x86_64 Linux, with ports 80 and 443 for the edge.
|
|
- Authelia for sign-in to the UI and to the hosts that ask for it.
|
|
- A git server for the routes repository (any that takes a push over HTTPS).
|
|
|
|
## The files on this page
|
|
|
|
`ianitor-<version>-src.tar.gz` is the source of this version: every file in the repository at its tag. The
|
|
server's Nix build is made from the same tree. It is listed in `SHA256SUMS`, which verifies with domi-release.
|
|
The screenshots show invented hosts on an invented home server.
|