Files
AniKotoAPI/.env.example
T
Shinei Nouzen fe51275db0 feat: upgrade to v2.0.0 with multi-mirror fallback, new endpoints, and LRU cache
- Add multi-mirror fallback system with 5 mirror domains
- Add LRU cache with configurable TTL per endpoint
- Add response compression (gzip)
- Add Seasons endpoint (/api/seasons/:id)
- Add Watch Order endpoint (/api/watch-order/:id)
- Add Latest Updated endpoint (/api/latest-updated)
- Add Download endpoint (/api/download)
- Add cache stats endpoint (/api/cache/stats)
- Add mirror status/reset endpoints (/api/mirrors, /api/mirrors/reset)
- Add configurable rate limiting with X-RateLimit headers
- Add request timeouts and entity too large handling
- Update documentation with all new endpoints
- Update CHANGELOG.md with v2.0.0 entry
- Update package.json version to 2.0.0
- Add 6 AI agent prompts for development
2026-07-04 15:07:07 +05:30

28 lines
711 B
Bash

# Origins you want to allow
ALLOWED_ORIGINS=https://site1.com,https://site2.com
# Port (optional, defaults to 4444)
PORT=4444
# Cache configuration
CACHE_MAX_SIZE=200
CACHE_DEFAULT_TTL=300000
# Rate limiting
RATE_LIMIT=100
RATE_WINDOW=60000
# Request timeout in milliseconds
REQUEST_TIMEOUT=30000
# Mirror configuration
# Comma-separated list of mirror domains (in priority order)
# Default: anikototv.to,anikoto.cz,anikoto.me,anikoto.net,anikototv.se
MIRROR_DOMAINS=https://anikototv.to,https://anikoto.cz,https://anikoto.me,https://anikoto.net,https://anikototv.se
# Mirror cache TTL in milliseconds (default: 1 hour)
MIRROR_CACHE_TTL=3600000
# Environment (production/development)
NODE_ENV=production