Commit Graph
2 Commits
Author SHA1 Message Date
dckc bb1fbbdc00 build(diigo-cache): ship the docs, and name the commit a build came from
systemctl status's Docs: line now leads to the README, at a profile
path that survives upgrades, and, for a build from a clean tree, to the
commit's source on git.inference.coop. The version ends in the short
rev (-dirty for a dirty tree), and share/doc/diigo-cache/REVISION holds
the full one. pnpmDeps keeps version 0.0.0, so a new commit doesn't
refetch the deps.

Generated-by: Claude Opus 5.5
2026-11-19 14:29:16 -06:00
dckcandClaude Opus 5.5 857816166e feat(diigo-cache): production deployment with tailscale, systemd, and nix
diigo binds the session cookie to the IP it was issued to, so a
Cloudflare deployment can't use a cookie minted in the browser. Run
diigo-cache and webapp in one workerd on bldbox instead.

The flake bundles each worker with wrangler's dry run, so the modules
match what `wrangler deploy` ships, and generates the workerd config
from the bundles. workerd comes from nixpkgs' wrangler, the only
packaged one. A smoke check serves the home page and mints a webapp
instance, which covers the WEBAPP binding and Durable Object storage.

The service is a system unit with DynamicUser, so the webapp state
holding the cookie isn't readable by processes running as the user.
It listens on loopback behind tailscale serve: HTTPS, which
PasswordCredential needs, at the tailnet name only.

Operator docs in doc/; unsettled points recorded as IBIS issues.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-14 23:12:47 -05:00