File size: 1,881 Bytes
4c4a722
 
 
054d73a
 
4c4a722
054d73a
 
 
 
4c4a722
054d73a
4c4a722
 
054d73a
4c4a722
 
054d73a
4c4a722
 
 
054d73a
4c4a722
 
 
 
054d73a
4c4a722
 
054d73a
 
4c4a722
054d73a
4c4a722
 
054d73a
4c4a722
 
054d73a
 
4c4a722
054d73a
4c4a722
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# ClassLens Environment Variables
# Copy to .env (project root or chatkit/) for local development.
# For HF Spaces, add these as Secrets in the Space settings. NEVER commit real secrets.

# =============================================================================
# OpenAI (vision parsing + report generation)
# =============================================================================
OPENAI_API_KEY=sk-your-openai-api-key

# =============================================================================
# Database
# =============================================================================
# Provider: "supabase" (Postgres, durable) or "sqlite" (local dev/tests)
DATABASE_PROVIDER=supabase

# Postgres schema that isolates ClassLens tables from anything else in the DB.
DB_SCHEMA=classlens

# Supabase connection (Project Settings > Database > Connection string).
# Use the session pooler (port 5432). Keep the password URL-safe.
SUPABASE_DB_URL=postgresql://postgres.<ref>:<password>@<region>.pooler.supabase.com:5432/postgres

# Supabase project URL + service-role key (only used for raw-file Storage).
SUPABASE_URL=https://<ref>.supabase.co
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
SUPABASE_STORAGE_BUCKET=classlens-raw-files

# Local SQLite path (only used when DATABASE_PROVIDER=sqlite; blank = auto).
DATABASE_PATH=

# =============================================================================
# Auth
# =============================================================================
JWT_SECRET_KEY=change-me-in-prod
JWT_EXPIRE_MINUTES=1440

# Comma-separated emails that are promoted to admin on startup.
ADMIN_EMAILS=you@example.com

# =============================================================================
# Misc
# =============================================================================
ENCRYPTION_KEY=
FRONTEND_URL=http://localhost:3000