Move the notes editor and job tracker to stppriv
Test and deploy / test (push) Successful in 31s
Test and deploy / deploy (push) Successful in 27s

The SilverBullet editor and the job tracker now run on their own LXC
(adamf/stppriv) at priv.<DOMAIN>, behind Cloudflare Access. Here:

- silverbullet and jobs services removed; /sb/, /jobs/ and the old
  /cv/jobs, /cv/leads and userscript URLs 301 to priv.<DOMAIN>
- silverbullet-git runs with SYNC_MODE=pull: stppriv is the vault's only
  writer. The backend's vault mount is read-only.
- jobs env vars, dev overrides and docs removed; edge_test.sh checks
  the new redirects

Merge only after stppriv serves /sb/ and /jobs/ and the jobs data has
been moved.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-26 13:53:48 +00:00
co-authored by Claude Opus 5.5
parent 65f2408ad4
commit 94a6abba97
12 changed files with 97 additions and 252 deletions
+10 -31
View File
@@ -44,17 +44,17 @@ redir /dozzle /dozzle/ 301
redir /garage /garage/ 301
redir /gitea https://git.{$DOMAIN}/ 301
redir /notes /notes/ 301
redir /sb /sb/ 301
redir /sb https://priv.{$DOMAIN}/sb/ 301
redir /py /py/ 301
redir /jobs /jobs/ 301
redir /jobs https://priv.{$DOMAIN}/jobs/ 301
redir /usaco /usaco/ 301
redir /tracker /tracker/ 301
redir /receipt /receipt/ 301
# Old job tracker URLs; the userscript's old @updateURL finds its update here.
redir /cv/jobs /jobs/ 301
redir /cv/leads /jobs/leads 301
redir /job-capture.user.js /jobs/job-capture.user.js 301
redir /cv/jobs https://priv.{$DOMAIN}/jobs/ 301
redir /cv/leads https://priv.{$DOMAIN}/jobs/leads 301
redir /job-capture.user.js https://priv.{$DOMAIN}/jobs/job-capture.user.js 301
# ---- Backend API ---------------------------------------------------------------
@@ -144,13 +144,9 @@ handle /radio/admin/* {
}
}
# No prefix strip: with SB_URL_PREFIX the app builds its URLs from /sb, and a
# stripped prefix loads a blank page.
# The notes editor is on stppriv, behind Cloudflare Access.
handle /sb/* {
import admin_gate
reverse_proxy {$SILVERBULLET_HOST}:{$SILVERBULLET_PORT} {
import proxy
}
redir https://priv.{$DOMAIN}{uri} 301
}
# ---- Public services -----------------------------------------------------------
@@ -195,27 +191,10 @@ handle /py/* {
}
# ---- Job tracker (/jobs/) ----
# Not stripped: the app lives at /jobs/. The capture API (bearer token) and
# the userscript (fetched without cookies, holds no secrets) bypass the gate.
handle /jobs/api/capture* {
import limit api 30 1s
reverse_proxy jobs:8080 {
import proxy
}
}
handle /jobs/job-capture.user.js {
reverse_proxy jobs:8080 {
import proxy
}
}
# On stppriv. A 301 turns a POST into a GET, so capture clients must call
# priv. directly.
handle /jobs/* {
import admin_gate
import limit api 30 1s
reverse_proxy jobs:8080 {
import proxy
}
redir https://priv.{$DOMAIN}{uri} 301
}
# ---- USACO (/usaco/) ----