- .env.example: frontend/.env.example dosyasına yönlendiren yorum eklendi. - docs/brainstorms/2026-02-28-realtime-db-redis-ui-sync-brainstorm.md: realtime DB/Redis/UI sync için mimari kararları, neden event+snapshot yaklaşımı seçildiği ve açık soruları belgeleyen brainstorm dökümanı. - tsconfig.tsbuildinfo: TypeScript incremental build artifact güncellendi. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
Plaintext
# ===========================================
|
|
# 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
|
|
# Frontend Vite env'de kullanilacak key'ler icin frontend/.env.example dosyasina bak.
|
|
|
|
# === 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
|