myYouTube/.env.example
vrubelroman e10df8dcbd Channel features: subscribers, new-videos badges, activity-driven sync
- Store subscriber count from YouTube statistics and show it on channel page
- Sync 50 videos per channel with playlistItems pagination support
- Show per-channel and per-category new-videos counters (2-day window)
- Replace hourly videos sync with activity trigger (2h idle) and
  incremental backfill (hard cap 200 per channel)
- Clicking the sidebar new-videos count filters the category feed to
  recent videos only (new_only)
- Update agent-team docs: deploy after green checks
2026-09-17 21:07:33 +00:00

41 lines
1.7 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

APP_ENV=production
APP_BASE_URL=https://testmyyoutube.vrubel.xyz
APP_PORT=8080
APP_SECRET_KEY=CHANGE_ME
TOKEN_ENCRYPTION_KEY=CHANGE_ME
POSTGRES_PASSWORD=CHANGE_ME
DATABASE_URL=postgresql+psycopg://youtube_app:CHANGE_ME@postgres:5432/youtube_app
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=https://testmyyoutube.vrubel.xyz/api/auth/google/callback
ALLOWED_GOOGLE_EMAIL=
# Google/YouTube endpoints (необязательно, есть дефолты)
GOOGLE_AUTH_URI=https://accounts.google.com/o/oauth2/auth
GOOGLE_TOKEN_URI=https://oauth2.googleapis.com/token
GOOGLE_USERINFO_URI=https://www.googleapis.com/oauth2/v3/userinfo
GOOGLE_REVOKE_URI=https://oauth2.googleapis.com/revoke
YOUTUBE_API_BASE_URL=https://www.googleapis.com/youtube/v3
YOUTUBE_WATCH_URL_TEMPLATE=https://www.youtube.com/watch?v={video_id}
METUBE_API_BASE_URL=http://192.168.8.177:8081
METUBE_PUBLIC_BASE_URL=http://192.168.8.177:8081
METUBE_CONTAINER_DOWNLOAD_DIR=/downloads
METUBE_REQUEST_TIMEOUT_SECONDS=30
SUBSCRIPTIONS_SYNC_INTERVAL_HOURS=6
# Необязательные настройки
# Авто-синк видео запускается по активности (запросы к API) после простоя
# в VIDEOS_SYNC_IDLE_HOURS с последнего завершённого синка.
VIDEOS_SYNC_IDLE_HOURS=2
# Максимум элементов плейлиста, рассматриваемых на канал за один синк.
VIDEOS_BACKFILL_CAP=200
# Остановить пагинацию плейлиста канала после стольких уже известных
# видео подряд (дальше — уже синхронизированная история).
VIDEOS_KNOWN_STOP_THRESHOLD=50
NEW_VIDEOS_WINDOW_DAYS=2
LOG_LEVEL=INFO