-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.env.example
More file actions
89 lines (72 loc) 路 1.88 KB
/
Copy path.env.example
File metadata and controls
89 lines (72 loc) 路 1.88 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
# Server Configuration
NODE_ENV=development
PORT=3000
HOST=localhost
# Database driver: mongo | postgres | memory
# If unset, defaults to "mongo" when MONGODB_URI is present, otherwise "memory".
DB_DRIVER=mongo
# MongoDB (ACTIVE datastore)
MONGODB_URI=mongodb+srv://user:password@cluster.mongodb.net/?retryWrites=true&w=majority
MONGODB_DB=maze-game
# PostgreSQL (no-op now, switch on with DB_DRIVER=postgres)
# Either set a single connection string...
DATABASE_URL=
# ...or the discrete fields below.
DB_HOST=localhost
DB_PORT=5432
DB_NAME=maze_game
DB_USER=postgres
DB_PASSWORD=your_password_here
# Set PGSSL=false to disable TLS for a local Postgres.
PGSSL=true
# Redis Configuration (for sessions and caching)
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
# JWT Configuration
JWT_SECRET=your_jwt_secret_here_change_in_production
JWT_EXPIRATION=24h
JWT_REFRESH_SECRET=your_refresh_secret_here
JWT_REFRESH_EXPIRATION=7d
# CORS Configuration
CORS_ORIGIN=http://localhost:3000,https://hoangsonww.github.io
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Google Analytics
GA_TRACKING_ID=G-CZ3YJF00CG
# Error Tracking (Sentry)
SENTRY_DSN=
SENTRY_ENVIRONMENT=development
# WebSocket Configuration
WS_PORT=3001
# Email Configuration (for notifications)
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USER=
SMTP_PASSWORD=
EMAIL_FROM=noreply@mazegame.com
# AWS Configuration (for file uploads/storage)
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=us-east-1
AWS_S3_BUCKET=
# Session Configuration
SESSION_SECRET=your_session_secret_here
SESSION_NAME=maze_game_session
SESSION_MAX_AGE=86400000
# API Configuration
API_VERSION=v1
API_PREFIX=/api
# Feature Flags
FEATURE_MULTIPLAYER=true
FEATURE_LEADERBOARD=true
FEATURE_ACHIEVEMENTS=true
FEATURE_SOUND=true
# Security
BCRYPT_ROUNDS=10
MAX_LOGIN_ATTEMPTS=5
LOCKOUT_DURATION=900000
# Monitoring
ENABLE_LOGGING=true
LOG_LEVEL=info