-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
51 lines (39 loc) · 1.09 KB
/
env.example
File metadata and controls
51 lines (39 loc) · 1.09 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
# Server Configuration
PORT=5000
NODE_ENV=development
# Database Configuration
DATABASE_PATH=./data/competitive_platform.db
# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-change-in-production
JWT_EXPIRES_IN=24h
REFRESH_TOKEN_EXPIRES_IN=7d
# Judge0 API Configuration
JUDGE0_API_URL=https://judge0-ce.p.rapidapi.com
JUDGE0_API_KEY=your-judge0-api-key-here
# OpenRouter API Configuration (for LLM service)
OPENROUTER_API_KEY=your-openrouter-api-key-here
# Frontend Configuration
FRONTEND_URL=http://localhost:3000
# Rate Limiting
MAX_SUBMISSION_LENGTH=50000
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Security
BCRYPT_SALT_ROUNDS=12
SESSION_SECRET=your-session-secret-key
# Email Configuration (for future use)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=your-email@gmail.com
SMTP_PASS=your-email-password
# File Upload Configuration
MAX_FILE_SIZE=10485760
UPLOAD_PATH=./uploads
# Logging Configuration
LOG_LEVEL=info
LOG_FILE=./logs/app.log
# Redis Configuration (for future scaling)
REDIS_URL=redis://localhost:6379
# Monitoring Configuration
ENABLE_METRICS=true
METRICS_PORT=9090