codenuk_backend_mine/generated-projects/premium_user_authentication/backend/.env.example
2025-10-10 08:56:39 +05:30

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