Adds precompiled Linux x86_64 binaries for yt-dlp and ffmpeg under bin/. The processor resolves yt-dlp from bin/ when present, falling back to PATH. ffmpeg is passed via --ffmpeg-location so yt-dlp uses the bundled binary on o2switch. BIN_DIR is configurable via env var. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
322 B
TypeScript
12 lines
322 B
TypeScript
import path from 'path'
|
|
|
|
export const config = {
|
|
DOWNLOAD_LINK_TTL_HOURS: 24,
|
|
WORKER_CONCURRENCY: 3,
|
|
WORKER_POLL_INTERVAL_MS: 10_000,
|
|
STORAGE_PATH: process.env.STORAGE_PATH ?? '',
|
|
RATE_LIMIT_MAX: 5,
|
|
RATE_LIMIT_WINDOW_MS: 3_600_000,
|
|
BIN_DIR: process.env.BIN_DIR ?? path.join(process.cwd(), 'bin'),
|
|
} as const
|