-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
79 lines (60 loc) · 2.01 KB
/
Copy path.env.example
File metadata and controls
79 lines (60 loc) · 2.01 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
76
77
78
79
# ============================================
# APPLICATION CONFIGURATION
# ============================================
# Application Environment: development, testing, production
APP_ENV=development
DEBUG=True
SECRET_KEY=your-secret-key-here-change-in-production
# ============================================
# DATABASE CONFIGURATION
# ============================================
# Database connection string
DATABASE_URL=postgresql://user:password@localhost:5432/skillgap
# Connection pool settings
DB_POOL_SIZE=20
DB_MAX_OVERFLOW=10
DB_POOL_TIMEOUT=30
DB_POOL_RECYCLE=1800
# ============================================
# REDIS CONFIGURATION (Caching & Rate Limiting)
# ============================================
REDIS_URL=redis://localhost:6379/0
REDIS_CACHE_TTL=3600
# ============================================
# UPLOAD CONFIGURATION
# ============================================
UPLOAD_FOLDER=uploads
MAX_UPLOAD_SIZE=16777216 # 16MB in bytes
ALLOWED_EXTENSIONS=pdf,docx,txt
# ============================================
# SECURITY CONFIGURATION
# ============================================
JWT_SECRET_KEY=your-jwt-secret-change-in-production
JWT_ACCESS_TOKEN_EXPIRES=900 # 15 minutes in seconds
JWT_REFRESH_TOKEN_EXPIRES=86400 # 24 hours in seconds
# Rate Limiting
RATE_LIMIT_PER_MINUTE=60
RATE_LIMIT_PER_DAY=1000
# CORS Configuration
CORS_ORIGINS=http://localhost:3000,http://localhost:5000
# ============================================
# LOGGING CONFIGURATION
# ============================================
LOG_LEVEL=INFO
LOG_FORMAT=json # json or text
# ============================================
# ML CONFIGURATION
# ============================================
TFIDF_MAX_FEATURES=5000
SIMILARITY_THRESHOLD=0.3
# ============================================
# EXTERNAL SERVICES (Optional)
# ============================================
# Sentry for error tracking
SENTRY_DSN=
# SMTP for email notifications
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_FROM_EMAIL=noreply@skillgap.com