-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.env.example
More file actions
58 lines (45 loc) · 1.52 KB
/
Copy path.env.example
File metadata and controls
58 lines (45 loc) · 1.52 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
# ==========================================
# CodeSM - Environment Configuration
# Copy this file to .env and fill in your values
# ==========================================
# Server Configuration
NODE_ENV=development
PORT=8000
FRONTEND_URL=http://localhost:5173
# PostgreSQL Database (Primary Database)
DATABASE_URL=postgresql://username:password@localhost:5432/codesm_db
# MongoDB Database
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/codesm
# Redis (for BullMQ queues and caching)
REDIS_URL=redis://localhost:6379
# JWT Authentication
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
JWT_EXPIRES_IN=7d
# Google OAuth 2.0
GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-google-client-secret
# Google Generative AI (Gemini)
GOOGLE_GENERATIVE_AI_API_KEY=your-gemini-api-key
# Google Cloud Text-to-Speech
GOOGLE_APPLICATION_CREDENTIALS=path/to/google-cloud-credentials.json
# AWS S3 (Test Case Storage)
AWS_ACCESS_KEY_ID=your-aws-access-key
AWS_SECRET_ACCESS_KEY=your-aws-secret-key
AWS_REGION=us-east-1
AWS_S3_BUCKET=your-s3-bucket-name
# Cloudinary (Image/Video Uploads)
CLOUDINARY_CLOUD_NAME=your-cloud-name
CLOUDINARY_API_KEY=your-api-key
CLOUDINARY_API_SECRET=your-api-secret
# Email/SMTP Configuration (Nodemailer)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-app-specific-password
EMAIL_FROM=noreply@codesm.io
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Logging
LOG_LEVEL=info
LOG_DIR=./logs