-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
75 lines (62 loc) · 2.1 KB
/
Copy path.env.example
File metadata and controls
75 lines (62 loc) · 2.1 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
# Crammr / Studytool environment variable template
# -----------------------------------------------------------------------------
# Copy this file to server/.env and fill in real values. NEVER commit server/.env.
# All variables below are read at startup by server/config/env.js (dotenv).
# In NODE_ENV=production, loadEnv() will refuse to start if any REQUIRED var
# is missing or if JWT_SECRET is left at its dev default.
# -----------------------------------------------------------------------------
# --- Runtime ---
NODE_ENV=development
PORT=3000
# --- Auth / JWT (REQUIRED in production) ---
# JWT_SECRET must be a long random string (>=32 bytes). Do NOT use the dev default.
JWT_SECRET=
JWT_EXPIRY=7d
# --- Google OAuth (REQUIRED in production for login + calendar) ---
GOOGLE_OAUTH_CLIENT_ID=
GOOGLE_OAUTH_CLIENT_SECRET=
# Legacy aliases (still read as fallback by env.js and calendarService.js)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALENDAR_REDIRECT_URI=http://localhost:3000/api/calendar/callback
# --- CORS (REQUIRED in production) ---
# Comma-separated list of allowed origins.
CORS_ORIGINS=http://localhost:3000
CLIENT_URL=http://localhost:3000
# --- MySQL (REQUIRED in production) ---
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=
DB_NAME=studytool
DB_PORT=3306
# Production TLS (optional)
DB_SSL=true
DB_SSL_REJECT_UNAUTHORIZED=true
DB_SSL_CA=
# --- Gemini (Google Generative AI) ---
GEMINI_API_KEY=
# --- Stripe ---
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PRICE_PRO_MONTHLY=
STRIPE_PRICE_PRO_ANNUAL=
STRIPE_PRICE_FAMILY_MONTHLY=
STRIPE_PRICE_FAMILY_ANNUAL=
# --- Google Cloud Storage ---
GCS_BUCKET=
GCS_PROJECT_ID=
GCS_KEY_FILE=
# Or use standard ADC: GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json
# --- ChromaDB (vector store for RAG) ---
CHROMADB_URL=http://localhost:8000
# --- Email (SendGrid) ---
EMAIL_API_KEY=
EMAIL_FROM=noreply@crammr.ai
# --- Web Push (VAPID) ---
VAPID_PUBLIC_KEY=
VAPID_PRIVATE_KEY=
# --- PostHog (product analytics only — NO behavioral/engagement data) ---
POSTHOG_API_KEY=
POSTHOG_HOST=https://app.posthog.com
# --- Redis / BullMQ ---
REDIS_URL=redis://localhost:6379