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:
@@ -23,9 +23,8 @@ backend (8080) ── Go API (GraphQL + REST)
|
||||
db (5432) ── PostgreSQL 16
|
||||
icecast2 (8000) ── Audio Streaming (Icecast2 + Liquidsoap)
|
||||
gitea (3000) ── Self-Hosted Git
|
||||
silverbullet (3000) ── Obsidian Notes Editor (SilverBullet 2.11.0)
|
||||
silverbullet-public (3000) ── Public read-only notes site (same image, SB_READ_ONLY)
|
||||
silverbullet-git ── Commits/pushes notes edits to the notes repo
|
||||
silverbullet-git ── Pulls the notes repo (the editor and its pushes are on stppriv)
|
||||
python (8000) ── Python API (FastAPI)
|
||||
```
|
||||
|
||||
@@ -52,9 +51,9 @@ python (8000) ── Python API (FastAPI)
|
||||
- Fan shrines (GTO, Evangelion, Demoman, Skip Skip Benben)
|
||||
- Self-hosted Git (Gitea) with CI/CD and commit feed on homepage
|
||||
- Printable CV with role-specific sections
|
||||
- Job application tracker with status workflow and CSV export (admin-only, `/cv/jobs`)
|
||||
- Job application tracker: runs on stppriv (`priv.<DOMAIN>/jobs/`), from the `adamf/job-tracker` repo
|
||||
- Database-backed bookmarks grouped by category, managed via GraphQL (admin-only)
|
||||
- Admin-gated routes: `/sb`, `/jobs`, `/tracker`, `/dozzle`, `/garage` and more require the admin session, checked by Caddy's `forward_auth` against the backend
|
||||
- Admin-gated routes: `/tracker`, `/dozzle`, `/garage` and more require the admin session, checked by Caddy's `forward_auth` against the backend
|
||||
- Landing page with animated stamps section
|
||||
- Route transitions (slide/fade) and performance optimizations (gzip, WOFF2 fonts, lazy loading)
|
||||
- Backend healthcheck (reported in `docker ps`; nothing restarts on it)
|
||||
@@ -67,10 +66,10 @@ python (8000) ── Python API (FastAPI)
|
||||
| `/stp` | Home dashboard with grid layout |
|
||||
| `/admin` | Admin login + panel (authenticated) |
|
||||
| `/cv` | Curriculum Vitae (printable) |
|
||||
| `/cv/jobs` | Job application tracker (admin-only, hidden print) |
|
||||
| `/cv/jobs` | 301 to the job tracker on stppriv |
|
||||
| `/bookmarks` | Bookmarks (database-backed, grouped by category) |
|
||||
| `/notes/:path` | Obsidian notes (read-only SilverBullet, public; `private/` excluded) |
|
||||
| `/sb/` | Obsidian note editor (via SilverBullet, admin-only) |
|
||||
| `/sb/` | 301 to the note editor on stppriv (`priv.<DOMAIN>/sb/`) |
|
||||
| `/shrines` | Fan shrine index + individual shrines |
|
||||
|
||||
## API
|
||||
@@ -180,11 +179,11 @@ Access tokens are valid for 7 days; refresh tokens for 365 days. `ValidateAdmin`
|
||||
| `/radio` | icecast:8000 | Audio streaming |
|
||||
| `/gitea` | gitea:3000 | Git service |
|
||||
| `/notes` | silverbullet-public:3000 | Obsidian notes (public, read-only) |
|
||||
| `/sb` | silverbullet:3000 | Obsidian notes editor (admin-only) |
|
||||
| `/sb`, `/jobs` | 301 to `priv.<DOMAIN>` | Editor and job tracker, on stppriv |
|
||||
| `/py` | python:8000 | Python API (FastAPI; docs at `/py/docs`) |
|
||||
| `/uploads` | local alias | User-uploaded files |
|
||||
|
||||
`/sb` is protected by `forward_auth` to the backend's `/auth/validate-admin`. Requests without a valid admin session are redirected to `/admin/login`. The full table is `caddy/routes.caddy`; `DEPLOYMENT.md` §1 explains it.
|
||||
Admin-only routes such as `/tracker` are protected by `forward_auth` to the backend's `/auth/validate-admin`. Requests without a valid admin session are redirected to `/admin/login`. The full table is `caddy/routes.caddy`; `DEPLOYMENT.md` §1 explains it.
|
||||
|
||||
### Deprecated Endpoints
|
||||
|
||||
@@ -213,11 +212,9 @@ Create a `.env` file in the project root. All services read from this file.
|
||||
| `UPTIMEKUMA_PORT` | Uptime Kuma port (planned) |
|
||||
| `WALLABAG_HOST` | Wallabag hostname (planned) |
|
||||
| `WALLABAG_PORT` | Wallabag port (planned) |
|
||||
| `SILVERBULLET_HOST` | SilverBullet hostname (defaults to `silverbullet`) |
|
||||
| `SILVERBULLET_PORT` | SilverBullet port (defaults to `3000`) |
|
||||
| `SILVERBULLET_PUBLIC_HOST` | Public notes SilverBullet hostname (defaults to `silverbullet-public`) |
|
||||
| `SILVERBULLET_PUBLIC_PORT` | Public notes SilverBullet port (defaults to `3000`) |
|
||||
| `SILVERBULLET_GIT_INTERVAL` | Seconds between notes commit/push cycles (defaults to `300`) |
|
||||
| `SILVERBULLET_GIT_INTERVAL` | Seconds between notes pulls (defaults to `300`) |
|
||||
| `GITEA_RUNNER_HOST` | Gitea runner hostname |
|
||||
| `GITEA_RUNNER_NAME` | Gitea runner display name |
|
||||
| `GITEA_RUNNER_REGISTRATION_TOKEN` | Token to register Gitea Actions runner |
|
||||
@@ -260,9 +257,9 @@ Gitea is not part of this stack. It runs in its own LXC from the `adamf/stpgit`
|
||||
### Obsidian Notes Setup
|
||||
|
||||
1. Set `OBSIDIAN_DIR` in `.env` to the absolute path of your Obsidian vault on the host machine
|
||||
2. The vault is mounted read-write into `silverbullet` at `/data`, which serves it as an
|
||||
editor at `/sb/`, and read-only into `silverbullet-public`, which serves it publicly at
|
||||
`/notes/` with `SB_READ_ONLY`
|
||||
2. The vault is a pull-only clone of the notes repo (`silverbullet-git`, `SYNC_MODE=pull`),
|
||||
mounted read-only into `silverbullet-public`, which serves it publicly at `/notes/` with
|
||||
`SB_READ_ONLY`. The editor, and the vault's only writer, is on stppriv (`priv.<DOMAIN>/sb/`)
|
||||
3. `private/` and `templates/` (at any depth), and dot-folders such as `.git`, are kept off
|
||||
`/notes/` by `SB_SPACE_IGNORE` **and** Caddy deny rules — the Caddy rules are the ones that
|
||||
actually enforce it. See `DEPLOYMENT.md` ("Public notes privacy boundary")
|
||||
|
||||
Reference in New Issue
Block a user