first commit
This commit is contained in:
41
.env.example
Normal file
41
.env.example
Normal file
@@ -0,0 +1,41 @@
|
||||
# ===========================================
|
||||
# Netflix Scraper API - Environment Variables
|
||||
# Copy this file to .env and fill in the values
|
||||
# ===========================================
|
||||
|
||||
# === Server Configuration ===
|
||||
PORT=3000
|
||||
NODE_ENV=development
|
||||
|
||||
# === PostgreSQL Configuration ===
|
||||
POSTGRES_HOST=localhost
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=your-secure-password-here
|
||||
POSTGRES_DB=netflix_scraper
|
||||
|
||||
# === Redis Configuration ===
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6379
|
||||
# Cache TTL in seconds (default: 7 days = 604800)
|
||||
REDIS_TTL_SECONDS=604800
|
||||
|
||||
# === Rate Limiting Configuration ===
|
||||
# Time window in milliseconds (default: 1 minute)
|
||||
RATE_LIMIT_WINDOW_MS=60000
|
||||
# Maximum requests per window per IP
|
||||
RATE_LIMIT_MAX_REQUESTS=30
|
||||
|
||||
# === API Keys (for frontend authentication) ===
|
||||
# Generate secure random keys for production!
|
||||
API_KEY_WEB=web-frontend-key-change-me-in-production
|
||||
API_KEY_MOBILE=mobile-app-key-change-me-in-production
|
||||
API_KEY_ADMIN=admin-key-super-secret-change-me
|
||||
|
||||
# === TMDB API Configuration ===
|
||||
# Get your API key from https://www.themoviedb.org/settings/api
|
||||
TMDB_API_KEY=your-tmdb-api-key-here
|
||||
TMDB_ACCESS_TOKEN=your-tmdb-access-token-here
|
||||
|
||||
# === Optional: Logging ===
|
||||
# LOG_LEVEL=info # debug, info, warn, error
|
||||
Reference in New Issue
Block a user