- Next.js 16 + Tailwind + shadcn/ui skeleton - Auth.js v5 generic OIDC (Pocket ID, PKCE) with optional group gate - proxy.ts gates all pages and API routes - Drizzle schema (models, files, jobs, logs, worker state) on SQLite/libsql - Worker skeleton: migrations, interrupted-job recovery, heartbeat Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
746 B
Bash
20 lines
746 B
Bash
# Hugging Face token (server-side only; passed to the hf CLI via environment)
|
|
HF_TOKEN=
|
|
# Where models are stored: <MODELS_DIR>/<org>/<repo>
|
|
MODELS_DIR=/models
|
|
# SQLite database (keep on a local volume, not NFS)
|
|
DATABASE_URL=file:/data/app.db
|
|
MAX_CONCURRENT_DOWNLOADS=1
|
|
# 0 disables the periodic update check
|
|
UPDATE_CHECK_INTERVAL_HOURS=12
|
|
|
|
# Auth.js: generate with `npx auth secret` or `openssl rand -base64 33`
|
|
AUTH_SECRET=
|
|
# Public URL of this app; OIDC redirect URI is <AUTH_URL>/api/auth/callback/pocket-id
|
|
AUTH_URL=https://models.example.com
|
|
OIDC_ISSUER=https://auth.example.com
|
|
OIDC_CLIENT_ID=
|
|
OIDC_CLIENT_SECRET=
|
|
# Optional, comma-separated. If set, only members of these groups (from the `groups` claim) can log in.
|
|
OIDC_ALLOWED_GROUPS=
|