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]>
57 lines
1.8 KiB
Bash
57 lines
1.8 KiB
Bash
# Every variable the tracker reads. In production these are set by the main
|
|
# site's docker-compose.yml (see README.md); for standalone development,
|
|
# docker-compose.yml here sets the essentials and reads the rest from a .env.
|
|
|
|
# --- Core -------------------------------------------------------------------
|
|
# Postgres connection, URL or key=value form.
|
|
DATABASE_URL=
|
|
# URL prefix everything is served under. The SPA is built for /jobs.
|
|
BASE_PATH=
|
|
# Where the Graph OAuth session and the capture token are saved (default /data).
|
|
DATA_DIR=
|
|
# Listen port (default 8080).
|
|
PORT=
|
|
# "true" enables gin debug logging, and is required for AUTH_MODE=dev.
|
|
DEV_MODE=
|
|
# "true" fills an empty database with demo data.
|
|
SEED_DB=
|
|
# GraphQL playground (GET /jobs/api/graphql) and introspection; DEV_MODE only.
|
|
GQL_PLAYGROUND=
|
|
GQL_INTROSPECTION=
|
|
|
|
# --- Auth -------------------------------------------------------------------
|
|
# "forward" (default): ask the main site's backend. "dev": admit everyone.
|
|
AUTH_MODE=
|
|
# The site backend's validate-admin route, on the Docker network
|
|
# (default http://backend:8080/auth/validate-admin).
|
|
AUTH_VALIDATE_URL=
|
|
|
|
# --- Claude -----------------------------------------------------------------
|
|
CLAUDE_API_KEY=
|
|
# Blank means claude-sonnet-5-5.
|
|
CLAUDE_MODEL=
|
|
|
|
# --- Email ingest -----------------------------------------------------------
|
|
# "graph" or "imap"; anything else leaves the pipeline off.
|
|
EMAIL_BACKEND=
|
|
EMAIL_SYNC_ENABLED=
|
|
# Go duration, default 30m.
|
|
EMAIL_SYNC_INTERVAL=
|
|
MSGRAPH_CLIENT_ID=
|
|
MSGRAPH_CLIENT_SECRET=
|
|
MSGRAPH_TENANT_ID=
|
|
# Must be <site>/jobs/api/email/callback and registered in Entra.
|
|
MSGRAPH_REDIRECT_URI=
|
|
IMAP_HOST=
|
|
IMAP_PORT=
|
|
IMAP_EMAIL=
|
|
IMAP_PASSWORD=
|
|
|
|
# --- Job leads --------------------------------------------------------------
|
|
JOB_LEADS_ENABLED=
|
|
# Go duration, default 6h.
|
|
JOB_LEADS_INTERVAL=
|
|
ADZUNA_APP_ID=
|
|
ADZUNA_APP_KEY=
|
|
REED_API_KEY=
|