-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.example
More file actions
72 lines (60 loc) · 1.56 KB
/
env.example
File metadata and controls
72 lines (60 loc) · 1.56 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
# Frontend Environment Variables
NEXT_PUBLIC_API_URL=http://localhost:8000
NEXT_PUBLIC_ANALYTICS_SERVICE_URL=http://localhost:8005
# User Service
USER_SERVICE_PORT=8001
USER_DB_HOST=localhost
USER_DB_PORT=5432
USER_DB_NAME=userdb
USER_DB_USER=user
USER_DB_PASSWORD=password
# Collaboration Service
COLLABORATION_SERVICE_PORT=8002
REDIS_HOST=localhost
REDIS_PORT=6379
# Question Service
QUESTION_SERVICE_PORT=8003
QUESTION_DB_HOST=localhost
QUESTION_DB_PORT=5433
QUESTION_DB_NAME=questiondb
QUESTION_DB_USER=user
QUESTION_DB_PASSWORD=password
# Matching Service
MATCHING_SERVICE_PORT=8003
# JWT Secret (use a strong secret in production)
JWT_SECRET=your-jwt-secret-key-here
JWT_REFRESH_SECRET=your-jwt-refresh-secret-key-here
JWT_EXPIRES_IN=900
JWT_REFRESH_EXPIRES_IN=604800
# Cookie Configuration
COOKIE_SECURE=false
COOKIE_SAME_SITE=lax
COOKIE_DOMAIN=localhost
# CORS Origins
CORS_ORIGIN=http://localhost:3000
# OTP Configuration
OTP_LENGTH=6
OTP_TTL_SECONDS=300
OTP_MAX_ATTEMPTS=3
# Email Service Configuration
EMAIL_ENABLED=true
EMAIL_PROVIDER=mailtrap
EMAIL_FROM=noreply@peerprep.com
EMAIL_FROM_NAME=PeerPrep Team
# Mailtrap Configuration (for development)
MAILTRAP_HOST=sandbox.smtp.mailtrap.io
MAILTRAP_PORT=2525
MAILTRAP_USER=your-mailtrap-user
MAILTRAP_PASS=your-mailtrap-password
# SMTP Configuration (for production)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your-smtp-user
SMTP_PASS=your-smtp-password
# Argon2 Password Hashing Configuration
ARGON2_MEMORY_COST=65536
ARGON2_TIME_COST=3
ARGON2_PARALLELISM=4
ARGON2_HASH_LENGTH=32
ARGON2_SALT_LENGTH=16