ff6e727ae7
- Flask app with HLS proxy routes (/hls, /player, /) - yt-dlp integration with 365-day in-memory cache - URL validation with allowed domains (youtube, pornhub, etc) - HTML5 HLS player with hls.js - Unit tests: URL validation, cache, error handling - Integration tests: ffmpeg-generated test video, full proxy chain - Environment-based configuration (PORT, CACHE_TTL, LOG_LEVEL) - MIT license
7 lines
147 B
Bash
7 lines
147 B
Bash
PORT=5000
|
|
LOG_LEVEL=INFO
|
|
CACHE_TTL=31536000
|
|
SOCKET_TIMEOUT=30
|
|
VALIDATION_ENABLED=true
|
|
ALLOWED_DOMAINS=youtube.com,youtu.be,pornhub.com,xvideos.com
|