Cloudtopiaa_Reseller_Backend/.env.example
2025-07-31 08:15:46 +05:30

51 lines
1.0 KiB
Plaintext

# Server Configuration
NODE_ENV=development
PORT=3000
HOST=localhost
# Database Configuration
DB_HOST=localhost
DB_PORT=5432
DB_NAME=cloudtopiaa_reseller_portal
DB_USERNAME=postgres
DB_PASSWORD=your_password
DB_DIALECT=postgres
# JWT Configuration
JWT_SECRET=your_super_secret_jwt_key_here
JWT_REFRESH_SECRET=your_super_secret_refresh_key_here
JWT_EXPIRES_IN=15m
JWT_REFRESH_EXPIRES_IN=7d
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# Email Configuration
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=your_email@gmail.com
SMTP_PASS=your_app_password
FROM_EMAIL=noreply@cloudtopiaa.com
FROM_NAME=Cloudtopiaa Reseller Portal
# File Upload Configuration
UPLOAD_PATH=uploads/
MAX_FILE_SIZE=5242880
ALLOWED_FILE_TYPES=pdf,doc,docx,jpg,jpeg,png
# Security Configuration
BCRYPT_ROUNDS=12
OTP_EXPIRES_IN=300000
SESSION_SECRET=your_session_secret_here
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100
# Frontend URL (for CORS and email links)
FRONTEND_URL=http://localhost:3000