Implement Phases 1-5: skeleton, OAuth, categories, video sync/feed, playback
- FastAPI + PostgreSQL + Alembic + React/Vite skeleton, Docker Compose, healthcheck
- Google OAuth (single allowed account), encrypted refresh token storage
- Subscriptions sync with pagination, uploads playlist batch fetch
- Categories CRUD, many-to-many channel assignment, category filtering
- Video sync (playlistItems + videos.list batching), cached feed with cursor
pagination, background scheduler (APScheduler)
- Video detail page with YouTube embed player
- SPA fallback routing, optimistic UI updates, client-side query caching
40 backend tests covering OAuth allow-list, sync idempotency, cascade deletes,
cursor pagination, and category filtering.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 18:44:30 +00:00
|
|
|
|
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=
|
|
|
|
|
|
|
2026-09-17 17:22:22 +00:00
|
|
|
|
# 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}
|
|
|
|
|
|
|
Implement Phases 1-5: skeleton, OAuth, categories, video sync/feed, playback
- FastAPI + PostgreSQL + Alembic + React/Vite skeleton, Docker Compose, healthcheck
- Google OAuth (single allowed account), encrypted refresh token storage
- Subscriptions sync with pagination, uploads playlist batch fetch
- Categories CRUD, many-to-many channel assignment, category filtering
- Video sync (playlistItems + videos.list batching), cached feed with cursor
pagination, background scheduler (APScheduler)
- Video detail page with YouTube embed player
- SPA fallback routing, optimistic UI updates, client-side query caching
40 backend tests covering OAuth allow-list, sync idempotency, cascade deletes,
cursor pagination, and category filtering.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 18:44:30 +00:00
|
|
|
|
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
|
2026-09-17 21:07:33 +00:00
|
|
|
|
|
|
|
|
|
|
# Необязательные настройки
|
|
|
|
|
|
# Авто-синк видео запускается по активности (запросы к API) после простоя
|
|
|
|
|
|
# в VIDEOS_SYNC_IDLE_HOURS с последнего завершённого синка.
|
|
|
|
|
|
VIDEOS_SYNC_IDLE_HOURS=2
|
|
|
|
|
|
# Максимум элементов плейлиста, рассматриваемых на канал за один синк.
|
|
|
|
|
|
VIDEOS_BACKFILL_CAP=200
|
|
|
|
|
|
# Остановить пагинацию плейлиста канала после стольких уже известных
|
|
|
|
|
|
# видео подряд (дальше — уже синхронизированная история).
|
|
|
|
|
|
VIDEOS_KNOWN_STOP_THRESHOLD=50
|
|
|
|
|
|
NEW_VIDEOS_WINDOW_DAYS=2
|
Implement Phases 1-5: skeleton, OAuth, categories, video sync/feed, playback
- FastAPI + PostgreSQL + Alembic + React/Vite skeleton, Docker Compose, healthcheck
- Google OAuth (single allowed account), encrypted refresh token storage
- Subscriptions sync with pagination, uploads playlist batch fetch
- Categories CRUD, many-to-many channel assignment, category filtering
- Video sync (playlistItems + videos.list batching), cached feed with cursor
pagination, background scheduler (APScheduler)
- Video detail page with YouTube embed player
- SPA fallback routing, optimistic UI updates, client-side query caching
40 backend tests covering OAuth allow-list, sync idempotency, cascade deletes,
cursor pagination, and category filtering.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 18:44:30 +00:00
|
|
|
|
|
|
|
|
|
|
LOG_LEVEL=INFO
|