42 lines
755 B
Plaintext
42 lines
755 B
Plaintext
# Server Configuration
|
|
NODE_ENV=development
|
|
PORT=3000
|
|
API_PREFIX=/api
|
|
|
|
# Database Configuration
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
DB_NAME=interview_quiz_db
|
|
DB_USER=root
|
|
DB_PASSWORD=your_password_here
|
|
DB_DIALECT=mysql
|
|
|
|
# Database Connection Pool
|
|
DB_POOL_MAX=10
|
|
DB_POOL_MIN=0
|
|
DB_POOL_ACQUIRE=30000
|
|
DB_POOL_IDLE=10000
|
|
|
|
# JWT Configuration
|
|
JWT_SECRET=your_generated_secret_key_here_change_in_production
|
|
JWT_EXPIRE=24h
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_WINDOW_MS=900000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# CORS Configuration
|
|
CORS_ORIGIN=http://localhost:4200
|
|
|
|
# Guest Session Configuration
|
|
GUEST_SESSION_EXPIRE_HOURS=24
|
|
GUEST_MAX_QUIZZES=3
|
|
|
|
# Logging
|
|
LOG_LEVEL=debug
|
|
|
|
# Redis Configuration (Optional - for caching)
|
|
# REDIS_HOST=localhost
|
|
# REDIS_PORT=6379
|
|
# REDIS_PASSWORD=
|