first commit

This commit is contained in:
2026-02-28 02:44:41 +03:00
commit 97fb289fe7
70 changed files with 11928 additions and 0 deletions

41
.env.example Normal file
View 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