-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
86 lines (64 loc) · 2.73 KB
/
Copy path.env.example
File metadata and controls
86 lines (64 loc) · 2.73 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Esencelab Environment Variables
# Copy this file to .env.local for local development
# For production, configure these in Vercel project settings
# ============================================================
# FRONTEND (Next.js)
# ============================================================
# API base URL - use /api for production (proxied through Next.js)
NEXT_PUBLIC_API_URL=/api
# Backend proxy target (for Next.js rewrites in same-domain mode)
# For production, this should point to your deployed backend
# BACKEND_PROXY_TARGET=https://your-backend.vercel.app
BACKEND_PROXY_TARGET=http://localhost:3001
# AI service proxy target (for Next.js rewrites in same-domain mode)
# For production, this should point to your deployed AI service
# AI_PROXY_TARGET=https://your-ai-service.vercel.app
AI_PROXY_TARGET=http://localhost:3002
# Maximum resume file size in MB
NEXT_PUBLIC_MAX_RESUME_FILE_SIZE_MB=4
# App URL for SSR
NEXT_PUBLIC_APP_URL=http://localhost:3000
# ============================================================
# BACKEND (Express API)
# ============================================================
# Server port
PORT=3001
# JWT secret for signing tokens (min 32 chars for production)
JWT_SECRET=your-super-secret-jwt-key-change-in-production
# Frontend URL for CORS (comma-separated for multiple)
FRONTEND_URL=http://localhost:3000
FRONTEND_URLS=http://localhost:3000,https://esencelab.vercel.app
# Data provider: 'memory' for local dev, 'supabase' for production
DATA_PROVIDER=memory
# AI service URL (internal)
AI_SERVICE_URL=http://localhost:3002
# AI internal auth token (must match ai-service)
AI_INTERNAL_AUTH_TOKEN=your-ai-internal-auth-token
# Supabase configuration (only needed for DATA_PROVIDER=supabase)
# SUPABASE_URL=https://your-project.supabase.co
# SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
# SUPABASE_ANON_KEY=your-anon-key
# Optional: Initial admin account creation (first run only)
# INITIAL_ADMIN_EMAIL=admin@esencelab.com
# INITIAL_ADMIN_PASSWORD=change-this-password
# INITIAL_ADMIN_NAME=Admin
# Optional: Initial recruiter account creation
# INITIAL_RECRUITER_EMAIL=recruiter@esencelab.com
# INITIAL_RECRUITER_PASSWORD=change-this-password
# INITIAL_RECRUITER_NAME=Recruiter
# ============================================================
# AI SERVICE (FastAPI)
# ============================================================
# Allowed origins for CORS (comma-separated)
AI_ALLOWED_ORIGINS=http://localhost:3000,https://esencelab.vercel.app
# Optional: Groq API for AI coach feature
# GROQ_API_KEY=your-groq-api-key
# GROQ_MODEL=openai/gpt-oss-120b
# GROQ_REASONING_EFFORT=high
# GROQ_SERVICE_TIER=auto
# AI service port
AI_PORT=3002
# Max resume upload size in MB
AI_MAX_UPLOAD_MB=4
# Node environment
NODE_ENV=development