docs
Self-hosting
Run the log, index, web UI, and mirrors on your own infrastructure.
Topology
signer machine ── bundle ──> log host ──> index/web ──> Caddy ──> readers
│ │
└── keys stay here └── onion mirror (separate host)
Keep signing keys off the public web host. The web host holds the log key and the index; the onion host holds no keys and no database.
Compose
The repository ships deploy/docker-compose.yml for a Caddy-fronted deployment and deploy/docker-compose.nginx.yml for a host nginx reverse proxy. See deploy/nginx.example.conf.
Key creation
export SERINUS_PASSPHRASE='…'
serinus init --dir .serinus --org example --name "Example" --domain example.org
serinus log keygen --out data/log.key --origin example.org/log \
--note-key data/tessera-note.key --note-pub data/tessera-note.pub.json
serinus key generate --role mirror --out data/mirror.key
serinus key pub --key data/mirror.key --out data/mirror.pub.json
serinus identity --dir .serinus --out web/static/.well-known/serinus.json
serinus trust --root-pub .serinus/root.pub.json \
--log-pub data/log.pub.json --mirror-pub data/mirror.pub.json \
--out data/trusted_roots.json --browser-out web/static/trust.json
Submit and index
curl --fail --data-binary @bundle.json \
-H 'content-type: application/json' \
https://example.org/v1/statements -o submitted.json
PYTHONPATH=web python -m serinus_web.indexer \
--log-url http://core:8080 --root-pins data/trusted_roots.json
Backups
Back up data/log, data/bundles, data/serinus.sqlite3, and data/trusted_roots.json. Never back up the passphrase with the keys. Test a restore before you need it.
Onion
Build a keyless mirror:
serinus mirror build --bundles data/bundles --out mirror \
--mirror-key data/mirror.key \
--root-pub .serinus/root.pub.json \
--log-pub data/log.pub.json \
--static web/static
Rsync mirror/ to the onion host. There is intentionally no automation for that step. See the repository’s docs/onion.md.