28 lines
646 B
Plaintext
28 lines
646 B
Plaintext
# Server Configuration
|
|
PORT=3000
|
|
NODE_ENV=development
|
|
ALLOWED_ORIGINS=http://localhost:3000,https://yourdomain.com
|
|
|
|
# Database Configuration
|
|
DATABASE_URL=postgresql://user:password@localhost:5432/auth_db
|
|
DB_MAX_CONNECTIONS=10
|
|
DB_IDLE_TIMEOUT=10000
|
|
|
|
# Redis Configuration
|
|
REDIS_URL=redis://localhost:6379
|
|
REDIS_PASSWORD=your_redis_password
|
|
|
|
# JWT Configuration
|
|
ACCESS_TOKEN_SECRET=your_access_token_secret_here
|
|
REFRESH_TOKEN_SECRET=your_refresh_token_secret_here
|
|
ACCESS_TOKEN_EXPIRES_IN=15m
|
|
REFRESH_TOKEN_EXPIRES_IN=7d
|
|
|
|
# Rate Limiting
|
|
RATE_LIMIT_WINDOW_MS=900000
|
|
RATE_LIMIT_MAX_REQUESTS=100
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|
|
LOG_FILE_PATH=./logs/app.log
|