Cookie'ler saatler içinde eskiyordu, her seferinde manuel Coolify env güncellemesi + redeploy gerekiyordu. Artık DB'de (app_settings tablosu) tutuluyor; /settings sayfasından yeni cookies.txt yapıştırılıp kaydedilebiliyor, bir sonraki yt-dlp çağrısında redeploy gerekmeden devreye giriyor. YTDLP_COOKIES_B64 env var mekanizması kaldırıldı. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
35 lines
1.4 KiB
Bash
35 lines
1.4 KiB
Bash
# Local dev (running services directly on the host) uses localhost.
|
||
# docker-compose overrides DATABASE_URL/REDIS_URL/SHARED_MEDIA_ROOT to
|
||
# internal container hostnames — see infra/docker-compose.yml.
|
||
DATABASE_URL=postgresql://streamclipper:streamclipper@localhost:5432/streamclipper
|
||
REDIS_URL=redis://localhost:6379
|
||
SHARED_MEDIA_ROOT=./shared-media
|
||
|
||
# Canlı yayın tespiti yt-dlp ile yapılıyor (bkz. youtubePolling.ts) —
|
||
# YouTube Data API key gerekmiyor.
|
||
OPENAI_API_KEY=
|
||
TELEGRAM_BOT_TOKEN=
|
||
TELEGRAM_CHAT_ID=
|
||
|
||
POLL_INTERVAL_MS=60000
|
||
SEGMENT_TIME_SEC=900
|
||
API_DAEMON_PORT=4001
|
||
|
||
# Set to a live YouTube URL to bypass the 60s polling loop and start
|
||
# capturing immediately — useful for testing the pipeline without waiting
|
||
# for a real scheduled stream.
|
||
FORCE_LIVE_URL=
|
||
|
||
# YouTube cookies (Netscape cookies.txt content) are configured from the
|
||
# panel's /settings page, not here — they rotate every few hours and are
|
||
# stored in the app_settings table so they can be updated without a
|
||
# redeploy. Use a throwaway/secondary Google account, not your main one —
|
||
# it's a live session credential.
|
||
|
||
# URL of a bgutil-ytdlp-pot-provider HTTP server (see docker-compose.yml
|
||
# sc_pot_provider). Needed alongside cookies to avoid YouTube's "The page
|
||
# needs to be reloaded" proof-of-origin token check. In docker-compose this
|
||
# is auto-set to http://sc_pot_provider:4416; leave blank for local dev
|
||
# unless you're running the provider yourself.
|
||
YTDLP_POT_PROVIDER_URL=
|