mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 16:53:38 +00:00
- dlib/ai/insights.py: pure-Python NLP analysis that correlates accepted AI suggestion operations/keywords/sections with submission outcomes (pending_review / published = positive, archived = negative) - Backend: GET /api/v1/insights route + service + Pydantic schema - Frontend: InsightsPanel component with bar charts for operation impact, section impact, and keyword signal lift scores - Insights tab added to the version panel; compact preview on doc overview - NEXT_PUBLIC_DEMO=true makes the webapp fully standalone: loads DEMO_DOCUMENTS / DEMO_SUBMISSIONS / DEMO_INSIGHTS from demo-data.ts, disables all mutating actions, shows a DEMO badge in the top bar - apps/webapp/public/demo-cv.docx: static dummy CV (Alex Rivera) for demo - scripts/gen_demo_cv.py: script to regenerate the demo DOCX - .env.example: document NEXT_PUBLIC_DEMO flag https://claude.ai/code/session_01LWxu2qrwY6BRjUFXXn7NiM
64 lines
3.8 KiB
Plaintext
64 lines
3.8 KiB
Plaintext
# Resume Branches — environment configuration
|
|
# Copy this file to .env and fill in values before running docker compose.
|
|
# For standalone (no Traefik): docker compose -f docker-compose.standalone.yml up -d
|
|
# For Traefik-based production: docker compose up -d (edit Traefik labels in docker-compose.yml)
|
|
|
|
# ── General ───────────────────────────────────────────────────────────────────
|
|
NAME=cvfs
|
|
COMPOSE_PROJECT_NAME=cvfs
|
|
|
|
# ── Public URLs ───────────────────────────────────────────────────────────────
|
|
# The URL users visit to access the app (no trailing slash).
|
|
# Standalone local: http://localhost:3000
|
|
# Production with a domain: https://cv.example.com
|
|
PUBLIC_BASE_URL=http://localhost:3000
|
|
|
|
# Domain used to construct published CV links (hostname only, no scheme).
|
|
CV_PUBLIC_DOMAIN=localhost
|
|
|
|
# ── Backend ───────────────────────────────────────────────────────────────────
|
|
BACKEND_PORT=8080
|
|
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/resume_branches
|
|
# Comma-separated list of allowed CORS origins
|
|
CORS_ORIGINS=http://localhost:3000
|
|
|
|
# ── PostgreSQL ────────────────────────────────────────────────────────────────
|
|
POSTGRES_PASSWORD=postgres
|
|
|
|
# ── Redis ─────────────────────────────────────────────────────────────────────
|
|
REDIS_URL=redis://localhost:6379/0
|
|
|
|
# ── MinIO object storage ──────────────────────────────────────────────────────
|
|
# Internal URL used by backend/worker (keep as-is for Docker deployments).
|
|
MINIO_ENDPOINT=http://localhost:9000
|
|
MINIO_BUCKET=resume-branches
|
|
MINIO_REGION=us-east-1
|
|
MINIO_ROOT_USER=minioadmin
|
|
MINIO_ROOT_PASSWORD=minioadmin
|
|
# MinIO admin console port (standalone mode only)
|
|
MINIO_CONSOLE_PORT=9001
|
|
|
|
# ── Frontend port (standalone mode only) ─────────────────────────────────────
|
|
WEBAPP_PORT=3000
|
|
|
|
# ── Auth — OIDC (optional) ────────────────────────────────────────────────────
|
|
# Set AUTH_DISABLE_VERIFICATION=false and configure OIDC to require authentication.
|
|
# Any OIDC-compatible provider works (Authentik, Keycloak, Auth0, Zitadel, etc.).
|
|
AUTH_DISABLE_VERIFICATION=true
|
|
AUTH_OIDC_ISSUER=
|
|
AUTH_OIDC_AUDIENCE=
|
|
|
|
# Frontend OIDC config (baked into the Next.js build — requires rebuild on change)
|
|
NEXT_PUBLIC_AUTHENTIK_ISSUER=
|
|
NEXT_PUBLIC_AUTHENTIK_CLIENT_ID=
|
|
AUTHENTIK_CLIENT_SECRET=
|
|
|
|
# ── AI tailoring (optional) ───────────────────────────────────────────────────
|
|
# Leave blank to use the built-in rule-based tailoring instead of Claude.
|
|
ANTHROPIC_API_KEY=
|
|
|
|
# ── Demo mode ─────────────────────────────────────────────────────────────────
|
|
# Set to true to enable standalone demo mode in the webapp.
|
|
# Demo mode uses hardcoded dummy data — no backend or DB required.
|
|
NEXT_PUBLIC_DEMO=false
|