lore-forge/deploy/systemd
Peterino 695bc5f141 Harden lore-forge for a production deployment
TLS on every Lore port, a Linux deployment behind Caddy, and backups.

- lore-forge loreserver-config writes loreserver's whole config:
  the certificate on QUIC and gRPC, store paths, ports, and the HTTP
  port bound to 127.0.0.1. --output writes it atomically. start.sh,
  the e2e test and the systemd units all use it.
- The repository browser reaches Lore's gRPC over TLS for https URLs.
  Pages show lores:// remotes (lore:// for loopback hosts), with
  LORE_FORGE_LORE_REMOTE to override.
- serve stops cleanly on SIGTERM, and reads the secret key from
  LORE_FORGE_SECRET_KEY_FILE or a systemd credential as well.
- backup-database snapshots the database with VACUUM INTO on a
  read-only connection and checks the copy.
- scripts/backup.sh copies the store live, stops loreserver briefly to
  copy it again with the database, and keeps hard-linked snapshots.
  scripts/restore.sh puts one back and moves the current state aside.
- deploy/: install.sh, systemd units for lore-forge, loreserver,
  certificate copying and nightly backups, the Caddy site, the
  settings template and an operator README. Not yet run on Linux.
- e2e: TLS by default with a CA made for the run (NO_TLS=1 for
  lore://); untrusting and lore:// clients are refused; ends with a
  backup, a push and a restore.
- Docs: deployment.md, Lore's transport security, backups in storage,
  and the overview's decisions and status.
2026-11-26 17:20:53 -07:00
..
lore-forge-backup.service Harden lore-forge for a production deployment 2026-11-26 17:20:53 -07:00
lore-forge-backup.timer Harden lore-forge for a production deployment 2026-11-26 17:20:53 -07:00
lore-forge-certs.path Harden lore-forge for a production deployment 2026-11-26 17:20:53 -07:00
lore-forge-certs.service Harden lore-forge for a production deployment 2026-11-26 17:20:53 -07:00
lore-forge.service Harden lore-forge for a production deployment 2026-11-26 17:20:53 -07:00
loreserver.service Harden lore-forge for a production deployment 2026-11-26 17:20:53 -07:00