-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
102 lines (80 loc) · 2.1 KB
/
env.example
File metadata and controls
102 lines (80 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# MLBB Platform Environment Configuration
# Copy this file to .env and fill in your values
# ===== GENERAL SETTINGS =====
NODE_ENV=development
APP_NAME="MLBB Platform"
# ===== BACKEND CONFIGURATION =====
# API Server
PORT=4000
API_HOST=localhost
# Proxy Server
PROXY_PORT=4005
# ===== FRONTEND CONFIGURATION =====
# API URLs
VITE_API_URL=http://localhost:4000/api
VITE_PROXY_API_URL=http://localhost:4005/api
# App Configuration
VITE_APP_TITLE="MLBB Platform"
VITE_APP_DESCRIPTION="Mobile Legends Bang Bang Gaming Community Platform"
# ===== AI CHATBOT CONFIGURATION =====
# OpenAI API (for AI chatbot)
OPENAI_API_KEY=your_openai_api_key_here
OPENAI_MODEL=gpt-3.5-turbo
OPENAI_MAX_TOKENS=1000
OPENAI_TEMPERATURE=0.7
# ===== EXTERNAL APIS =====
# Mobile Legends API
MLBB_API_URL=https://mapi.mobilelegends.com
MLBB_API_CACHE_DURATION=300000
# ===== SECURITY =====
# JWT Configuration
JWT_SECRET=your_super_secret_jwt_key_here
JWT_EXPIRES_IN=24h
# CORS Origins (comma-separated for production)
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# ===== MONITORING & LOGGING =====
# Error Reporting
ENABLE_ERROR_REPORTING=false
ERROR_REPORTING_URL=
# Analytics
ENABLE_ANALYTICS=false
ANALYTICS_ID=
# ===== PERFORMANCE =====
# Cache Settings
ENABLE_REDIS_CACHE=false
REDIS_URL=redis://localhost:6379
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# ===== DATABASE (if needed in future) =====
# MongoDB
MONGODB_URI=mongodb://localhost:27017/mlbb_platform
# PostgreSQL
DATABASE_URL=postgresql://username:password@localhost:5432/mlbb_platform
# ===== DEVELOPMENT TOOLS =====
# Debug settings
DEBUG_MODE=true
VERBOSE_LOGGING=true
# Hot reload
ENABLE_HOT_RELOAD=true
# ===== PRODUCTION OPTIMIZATIONS =====
# Compression
ENABLE_GZIP=true
COMPRESSION_LEVEL=6
# CDN
CDN_URL=
STATIC_ASSETS_URL=
# ===== SOCIAL FEATURES =====
# Discord Integration (if needed)
DISCORD_BOT_TOKEN=
DISCORD_GUILD_ID=
DISCORD_CLIENT_ID=
# ===== FILE UPLOADS (if needed) =====
# Local storage
UPLOAD_DIR=uploads
MAX_FILE_SIZE=10485760
# Cloud storage (AWS S3, etc.)
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
AWS_S3_BUCKET=