For running behind Cloudflare Access on stppriv, where the main site's
cookie is not sent. Verifies Cf-Access-Jwt-Assertion (or the
CF_Authorization cookie) as RS256 against the team's certs, with issuer
and audience checks. Default mode is still forward.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Gitea runs on its own LXC, and stpvm's localhost:2222 forwarder to it is
being removed. stpvm pins git.adam-french.co.uk to the LXC's LAN IP in
/etc/hosts, so the self-hosted job reaches it directly.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The site and its runner moved from the arm64 Pi to stpvm (x86-64,
Docker 29), so the comments about the build host, its Docker version
and the image architecture were wrong.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The mailbox sync (Microsoft Graph and IMAP), its Claude classifier, the
/email routes and the Settings page's email section are taken out while
the pipeline is unused. The last commit with it is tagged
email-pipeline-last; reverting this commit brings it back.
The status rules the capture path shares (statusOrder, StatusAdvances,
NormalizeStatus) move to job_status.go with their tests. ProcessedEmail
stays in the migration, marked dormant, so its history survives for a
restored pipeline. golang.org/x/oauth2 is no longer needed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
After publishing, the publish job now pulls the image into the web_server
stack on the Pi and recreates only the jobs container, under the same
flock the site's own deploys and the .env applier take. It then waits for
the image's healthcheck and fails the run, with the container's last log
lines, if the tracker does not come up. Pinning JOBS_IMAGE_TAG in the
site's .env still holds a version, since compose pulls the pinned tag.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Gitea advertises its token endpoint at https://<domain>/v2/token, not
under /gitea/, so the /v2/ route belongs in the apex server block (added in
web_server da2ab9f) rather than nginx_routes.conf.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The applications tracker, leads inbox, email pipeline and capture userscript
move here from web_server's backend, Python service and Vue app, as one Go
binary that serves its own Vue SPA under /jobs/.
- The Go services, resolvers and tests move over almost unchanged.
- The three Claude calls are ported from Python to Go (internal/claude),
with the same prompts, per-model request shaping and error messages.
- There is no login: internal/auth asks the site backend's
/auth/validate-admin with the visitor's cookies, and relays refreshed
cookies back.
- A Settings page replaces the admin-panel capture token card and adds the
Microsoft sign-in link and a manual email sync.
- The userscript is 2.0.0, at /jobs/, and migrates a saved API base.
- Dockerfile, a standalone compose with Postgres, Makefile, and a Gitea CI
workflow that tests and publishes the image.
Co-Authored-By: Claude Opus 5.5 <[email protected]>