Files
video-downloader/config/app.config.ts
T
anthonyandClaude Sonnet 4.6 01b67bb81c feat: bundle yt-dlp and ffmpeg Linux binaries in bin/
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>
2026-08-10 15:13:23 +02:00

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