-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
52 lines (43 loc) · 1.46 KB
/
.env.example
File metadata and controls
52 lines (43 loc) · 1.46 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
# Copy to .env and fill in values. See README.md for context.
# --- App URLs ---
FRONTEND_URL=http://localhost:3000
# --- Auth (required) ---
JWT_SECRET=change-me-long-random-string
JWT_REFRESH_SECRET=change-me-different-long-random-string
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
# Optional; default matches local Nest on 8081
GOOGLE_CALLBACK_URL=http://localhost:8081/auth/google/callback
# --- Database (pick ONE style) ---
# Option A: single URL (e.g. production)
# DATABASE_URL=postgres://user:pass@host:5432/openedu_db
# Option B: local Docker defaults (see docker-compose.yml)
DB_HOST=localhost
DB_PORT=5433
DB_USERNAME=openedu
DB_PASSWORD=
DB_NAME=openedu_db
# --- Redis / BullMQ (required for queues & jobs) ---
REDIS_URL=redis://localhost:6380
# --- MinIO (required; match docker-compose or your S3-compatible store) ---
MINIO_ENDPOINT_INTERNAL=localhost
MINIO_ENDPOINT_EXTERNAL=localhost:9000
MINIO_PORT=9000
MINIO_USE_SSL=false
MINIO_ROOT_USER=
MINIO_ROOT_PASSWORD=
# --- OpenAI (required for AI features, embeddings, content generation) ---
OPENAI_API_KEY=
# Optional overrides (defaults exist in code)
# OPENAI_CHAT_MODEL=gpt-4.1-mini
# --- Razorpay (required at startup for payments module) ---
RAZORPAY_KEY_ID=
RAZORPAY_KEY_SECRET=
RAZORPAY_WEBHOOK_SECRET=
# --- Email (only if you wire Resend into the app) ---
# RESEND_API_KEY=
# --- Owner bootstrap (optional; has dev defaults — set in production) ---
# OWNER_JWT_TOKEN=
# OWNER_EMAIL=
# OWNER_NAME=
# OWNER_ID=