-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
40 lines (33 loc) · 1.42 KB
/
Copy path.env.example
File metadata and controls
40 lines (33 loc) · 1.42 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
# Database Connection String (PostgreSQL is required by prisma/schema.prisma)
DATABASE_URL="postgresql://USER:PASSWORD@HOST:5432/codeforge?schema=public"
# Optional pool size for a pooled PostgreSQL deployment; keep this low on serverless.
PRISMA_CONNECTION_LIMIT="2"
# JWT Secret for Session & Authentication Tokens
JWT_SECRET="replace-with-a-long-random-secret"
# Canonical public origin used for OAuth redirects (set this in production)
APP_URL="http://localhost:3000"
# FreeModel provider credentials
FREEMODEL_API_KEY="your-freemodel-api-key"
FREEMODEL_API_KEY_2="optional-backup-freemodel-api-key"
FREEMODEL_API_KEY_3="optional-third-freemodel-api-key"
FREEMODEL_BASE_URL="https://api.freemodel.dev/v1"
FREEMODEL_FAST_MODEL=""
FREEMODEL_COMPLEX_MODEL=""
# Gemini fallback provider (used only after all FreeModel keys fail)
GEMINI_API_KEY=""
GEMINI_API_KEY_2=""
GEMINI_MODEL="gemini-3-flash-preview"
GEMINI_THINKING_LEVEL="minimal"
GEMINI_TIMEOUT_MS="30000"
# Judge0 CE code execution is configured in lib/piston.ts.
JUDGE0_API_URL="https://ce.judge0.com/submissions?wait=true"
JUDGE0_API_URL_2=""
JUDGE0_API_KEY=""
PISTON_API_URL="https://emkc.org/api/v2/piston"
# Transactional email for signup, sign-in OTP, and password reset
RESEND_API_KEY=""
RESEND_FROM_EMAIL="CodeForge <auth@yourdomain.com>"
# Optional Google OAuth login
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
GOOGLE_REDIRECT_URI="http://localhost:3000/api/auth/google/callback"