lilith-platform.live/codebase/@features/admin/backend-api
2026-05-14 20:03:45 -07:00
..
src refactor(admin-backend-api): ♻️ Restructure mail threads route to dynamically load inboxes from JSON config and update tests for configurable behavior 2026-05-14 20:03:45 -07:00
.env.development
.env.local.example
package.json reconcile: 🔧 plum/apricot divergence resolution + apricot-only authoring rule 2026-05-13 21:16:34 -07:00
README.md
tsconfig.json
vitest.config.ts chore(admin-backend-api): 🔧 Update Vitest config for admin backend API test environment and coverage settings 2026-04-19 23:06:59 -07:00

Admin API

Node.js HTTP server for the Quinn admin control center. Port 3023.

Auth: SSO cookie (via quinn-sso-api) or service bearer token (QUINN_ADMIN_SERVICE_TOKEN).

Dev proxy mode

When PROXY_TARGET is set, the server short-circuits every request (except /health) and proxies it upstream to the target, injecting Authorization: Bearer <QUINN_ADMIN_SERVICE_TOKEN>. No local SQLite is touched.

Copy .env.local.example to .env.local and fill in the token:

cp .env.local.example .env.local
# edit .env.local — get QUINN_ADMIN_SERVICE_TOKEN from /etc/quinn-admin-api/secrets.env on vps-0

The server logs a WARN line at boot when proxy mode is active, and prefixes each proxied request log with [PROXY→prod].

See docs/PROD_DB_UNIFICATION_PLAN.md for full architecture context.