Cache every played or saved video on the server via background jobs with a validation gate and a Broken re-download button

This commit is contained in:
Jonathan Sykes
2026-09-13 09:45:01 +08:00
parent 292a0c7e29
commit 5fb863ba25
8 changed files with 1240 additions and 20 deletions

View File

@@ -11,6 +11,15 @@ services:
APP_VERSION: "1.0.0"
# Optional: override yt-dlp binary path if you mount a custom one
# YTDLP_PATH: "/usr/local/bin/yt-dlp"
# Server media cache (server/media-cache.js) — defaults shown.
# MEDIA_DIR: "/app/data/media" # on the ytplayer-data volume
# MEDIA_CACHE_MAX_BYTES: "10737418240" # 10 GiB, LRU eviction past this
# MEDIA_MIN_FREE_BYTES: "5368709120" # skip caching below 5 GiB free disk
# MEDIA_AUTO_MAX_SECONDS: "3600" # longest video auto-cached on play
# MEDIA_TRANSCODE: "1" # 0 disables the x264 lane
# MEDIA_CRF: "28"
# MEDIA_PRESET: "slow"
# MEDIA_THREADS: "2"
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:3000/api/version"]
interval: 30s