Move the notes editor and job tracker to stppriv
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:
+14
-73
@@ -8,8 +8,8 @@
|
||||
# names and published ports are built.
|
||||
# 2. `env_file: ./.env` on a service. Injects the WHOLE file as environment
|
||||
# variables inside that container. backend, db and icecast2 do this.
|
||||
# The `python` and `jobs` services deliberately do neither wholesale — each
|
||||
# uses an explicit `environment:` allow-list, so neither sees the site's
|
||||
# The `python` service deliberately does neither wholesale — each
|
||||
# uses an explicit `environment:` allow-list, so it never sees the site's
|
||||
# database password, the JWT secret, or any key it does not use.
|
||||
#
|
||||
# HOW TO USE
|
||||
@@ -20,7 +20,7 @@
|
||||
#
|
||||
# ADDING A VARIABLE
|
||||
# Add it to .env.dev as well, with a dummy value, so the dev stack keeps
|
||||
# starting. If the python or jobs service reads it, add it to that service's
|
||||
# starting. If the python service reads it, add it to that service's
|
||||
# `environment:` list in docker-compose.yml too, or the container never
|
||||
# receives it.
|
||||
#
|
||||
@@ -33,9 +33,9 @@
|
||||
# =============================================================================
|
||||
|
||||
# --- Postgres ----------------------------------------------------------------
|
||||
# One instance, three databases: POSTGRES_DB for the Go backend,
|
||||
# POSTGRES_JOBS_DB for the job tracker and POSTGRES_TRACKER_DB for the
|
||||
# activity tracker (each of the last two with its own role). Gitea's database
|
||||
# One instance, two databases: POSTGRES_DB for the Go backend and
|
||||
# POSTGRES_TRACKER_DB for the activity tracker (with its own role). The job
|
||||
# tracker's database moved to stppriv's own Postgres. Gitea's database
|
||||
# is in the Gitea LXC's own Postgres. Only POSTGRES_DB is auto-created on first init; the others must
|
||||
# be created by hand on a fresh volume (the job-tracker and ccp READMEs have
|
||||
# the commands).
|
||||
@@ -45,9 +45,6 @@ POSTGRES_PASSWORD=
|
||||
POSTGRES_DB=
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_HOST=db
|
||||
POSTGRES_JOBS_DB=jobs
|
||||
POSTGRES_JOBS_USER=jobs
|
||||
POSTGRES_JOBS_PASSWORD=
|
||||
POSTGRES_TRACKER_DB=tracker
|
||||
POSTGRES_TRACKER_USER=tracker
|
||||
POSTGRES_TRACKER_PASSWORD=
|
||||
@@ -73,63 +70,13 @@ GITEA_RUNNER_HOST=
|
||||
GITEA_RUNNER_NAME=pi-runner
|
||||
GITEA_RUNNER_REGISTRATION_TOKEN=
|
||||
|
||||
# --- Email ingest (job tracker) -----------------------------------------------
|
||||
# EMAIL_BACKEND selects the mail source: "graph" (Microsoft Graph API, OAuth)
|
||||
# or "imap" (fallback; Microsoft has retired IMAP basic auth for outlook.com,
|
||||
# so imap+app-password only works with non-Microsoft providers like Gmail).
|
||||
# For "graph": register an Entra "app registration" for a personal Microsoft
|
||||
# account at azure.microsoft.com > Microsoft Entra ID > App registrations
|
||||
# (default tenant = "consumers"); add a delegated Mail.Read permission with
|
||||
# admin/user consent, and create a client secret. Redirect URI type "Web",
|
||||
# value must live behind the site's real HTTPS origin, e.g.
|
||||
# https://<YOUR_DOMAIN>/jobs/api/email/callback (served by the job tracker,
|
||||
# which exchanges the code there). TenantID must be "consumers" for a personal
|
||||
# outlook.com account.
|
||||
# The tracker's Settings page (/jobs/settings) shows the authorisation link
|
||||
# until you sign in; the refresh token is persisted to
|
||||
# jobs-data/msgraph_token.json.
|
||||
# OAuth flow reference: https://learn.microsoft.com/en-us/graph/auth-v2-user
|
||||
EMAIL_BACKEND=
|
||||
MSGRAPH_CLIENT_ID=
|
||||
MSGRAPH_CLIENT_SECRET=
|
||||
MSGRAPH_TENANT_ID=consumers
|
||||
MSGRAPH_REDIRECT_URI=
|
||||
# IMAP_PASSWORD should be an app-specific password, not the account password.
|
||||
# Only read when EMAIL_BACKEND=imap.
|
||||
IMAP_HOST=
|
||||
IMAP_PORT=993
|
||||
IMAP_EMAIL=
|
||||
IMAP_PASSWORD=
|
||||
EMAIL_SYNC_INTERVAL=
|
||||
EMAIL_SYNC_ENABLED=
|
||||
|
||||
# --- Job leads (job tracker) --------------------------------------------------
|
||||
# The lead fetcher polls the sources listed on /jobs/leads and files new
|
||||
# postings in the leads inbox. JOB_LEADS_ENABLED=true runs it on a timer;
|
||||
# "Check now" on that page works whether or not it is set. JOB_LEADS_INTERVAL
|
||||
# is a Go duration (default 6h). Scoring uses CLAUDE_API_KEY, above.
|
||||
# The board sources (Greenhouse, Lever, Ashby) need no key. The two search
|
||||
# sources do, both free:
|
||||
# Adzuna: https://developer.adzuna.com/ (an application id and a key)
|
||||
# Reed: https://www.reed.co.uk/developers/jobseeker
|
||||
# A search source whose key is blank reports that on the page; nothing else
|
||||
# is affected.
|
||||
JOB_LEADS_ENABLED=
|
||||
JOB_LEADS_INTERVAL=
|
||||
ADZUNA_APP_ID=
|
||||
ADZUNA_APP_KEY=
|
||||
REED_API_KEY=
|
||||
|
||||
# --- SilverBullet (notes) ---------------------------------------------------
|
||||
# Two instances over the same vault: the admin-only editor at /sb/, and the
|
||||
# public read-only notes site at /notes/ (which replaced Quartz). All four
|
||||
# default in docker-compose.yml (the caddy service's list), so they can be left
|
||||
# blank.
|
||||
SILVERBULLET_HOST=silverbullet
|
||||
SILVERBULLET_PORT=3000
|
||||
# The public read-only notes site at /notes/. The editor, and the vault's only
|
||||
# writer, is stppriv (priv.DOMAIN/sb/); silverbullet-git here only pulls.
|
||||
# Both default in docker-compose.yml.
|
||||
SILVERBULLET_PUBLIC_HOST=silverbullet-public
|
||||
SILVERBULLET_PUBLIC_PORT=3000
|
||||
# Seconds between notes commit/push cycles (default 300).
|
||||
# Seconds between notes pulls (default 300).
|
||||
SILVERBULLET_GIT_INTERVAL=
|
||||
|
||||
# --- Go backend --------------------------------------------------------------
|
||||
@@ -144,8 +91,8 @@ BACKEND_SECRET=
|
||||
BACKEND_ENDPOINT=/api
|
||||
|
||||
# --- Obsidian vault ----------------------------------------------------------
|
||||
# HOST path, interpolated straight into the bind mounts: read-write into the
|
||||
# backend, silverbullet and silverbullet-git, read-only into
|
||||
# HOST path, interpolated straight into the bind mounts: read-write into
|
||||
# silverbullet-git (which pulls it), read-only into the backend and
|
||||
# silverbullet-public. Must be an absolute path that exists on the host or the
|
||||
# stack will not start.
|
||||
OBSIDIAN_DIR=
|
||||
@@ -202,8 +149,8 @@ CLOUDFLARE_DNS_API_TOKEN=
|
||||
# --- Third-party API keys (backend) ------------------------------------------
|
||||
# CLAUDE_API_KEY is used by the python service, which makes the main site's
|
||||
# Claude calls: the rowing photo reader, the job posting reader and the email
|
||||
# pipeline's classifier. The backend no longer calls Claude itself. The jobs
|
||||
# and usaco containers get the same key for their own calls.
|
||||
# pipeline's classifier. The backend no longer calls Claude itself. The usaco
|
||||
# container gets the same key for its own calls.
|
||||
CLAUDE_API_KEY=
|
||||
# Which model those calls use: claude-haiku-4-5 (cheapest), claude-sonnet-5-5
|
||||
# (the default when blank) or claude-opus-5-5. Recreate the python service
|
||||
@@ -221,12 +168,6 @@ SEED_DB=
|
||||
PYTHON_HOST=python
|
||||
PYTHON_PORT=8000
|
||||
|
||||
# --- Job tracker (/jobs/) -----------------------------------------------------
|
||||
# An image built and published by the job-tracker repo's CI. Blank runs
|
||||
# :latest; set a commit sha to pin. Changing it needs
|
||||
# `docker compose pull jobs && docker compose up -d jobs`.
|
||||
JOBS_IMAGE_TAG=
|
||||
|
||||
# --- USACO site (/usaco/) ------------------------------------------------------
|
||||
# An image built and published by the usaco repo's CI. Blank runs :latest; set
|
||||
# a commit sha to pin. Changing it needs
|
||||
|
||||
Reference in New Issue
Block a user