Commit Graph

2 Commits

Author SHA1 Message Date
Peterino2 9dd11c3011 Offer desktop client downloads and let a proxy end Lore's gRPC TLS
- scripts/build-desktop-dist.sh cross-compiles the desktop client for
  Linux (glibc 2.39) and Windows with Zig and Cargo, bundles liblore
  from the pinned release, and writes the archives, SHA256SUMS and BUILD
  to run/downloads/.
- lore-forge serves them to signed-in users at /download and
  /downloads/{file} (LORE_FORGE_DOWNLOADS_DIR), with a Desktop tab in
  the nav and a panel on the home page. Only plain names of known types
  are served; download and downloads are reserved names.
- fetch-lore.sh takes LORE_TARGET for --liblore and unpacks the Windows
  zip.
- loreserver-config --grpc-tls-at-proxy (LORE_GRPC_TLS_AT_PROXY=1 for
  start.sh) gives the certificate to QUIC only, for a proxy that ends
  TLS on TCP 41337 and relays to loreserver over a private link.
- shell.nix: an FHS shell with Rust, protoc, Zig and the other build
  tools, for NixOS.
2026-11-27 04:16:36 +00:00
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