Some checks are pending
CI / vet-build-test (push) Waiting to run
- scripts/hub-auth-smoke.sh: throwaway-instance smoke proving invite revocation works + +s attenuation holds (admin without +s denied conferring it). No python/jq dep (curl+sed). Reusable by redeploy + CI. Verified locally. - deploy/redeploy-hub.sh: rewritten from build→scp→restart into a SAFE pipeline — migration dry-run on a COPY of live data (live untouched) → auth smoke the new binary on the NAS → back up binary+DB (stopped, WAL quiescent) → swap + sync unit → post-verify (hub answers + /v1/invite/revoke=401 proves new code) → AUTO-ROLLBACK on failure. The hub DB is canonical history; never YOLO a binary onto it. - deploy/devbox-hub.service: add --gc-every 24h (self-maintain; blobs don't grow unbounded). HTTPS via NPM note.
19 lines
770 B
Desktop File
19 lines
770 B
Desktop File
# devbox hub systemd unit (installed at /etc/systemd/system/devbox-hub.service on the hub host).
|
|
# Reboot-persistent, auto-restart. Runs as a normal user that owns the data dir.
|
|
[Unit]
|
|
Description=devbox hub
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
# --gc-every: self-maintain (prune old snapshots + unreferenced chunks) daily, so
|
|
# blobs don't accumulate forever. Bind plain :8088 for the LAN; HTTPS is fronted by
|
|
# NPM at https://hub.shoemoney.ai (the API has bearer auth, so TLS-terminate there).
|
|
ExecStart=/mnt/tank/apps/devbox/devbox-hub serve --data /mnt/tank/apps/devbox/data --listen 0.0.0.0:8088 --gc-every 24h
|
|
WorkingDirectory=/mnt/tank/apps/devbox
|
|
User=shoemoney
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|