crowncode-backend / .env.example
Rthur2003's picture
docs: update README and .env.example with optional yt-dlp cookie authentication details
c4db5be
# CrownCode Backend Environment Variables
# Copy this file to .env and fill in your values
# =============================================
# CORS Configuration
# =============================================
CROWNCODE_CORS_ORIGINS=http://localhost:3000,https://your-domain.com
# =============================================
# Logging
# =============================================
LOG_LEVEL=INFO
# =============================================
# Spotify API (for AI Music Detection)
# =============================================
SPOTIFY_CLIENT_ID=your-spotify-client-id
SPOTIFY_CLIENT_SECRET=your-spotify-client-secret
# =============================================
# YouTube OAuth (for AI Music Detection page)
# =============================================
YOUTUBE_OAUTH_CLIENT_ID=your-youtube-oauth-client-id
YOUTUBE_OAUTH_CLIENT_SECRET=your-youtube-oauth-client-secret
YOUTUBE_OAUTH_REDIRECT_URI=https://your-domain.com/ai-music-detection
# Optional: authenticate yt-dlp when YouTube blocks guest downloads
# Use one of the methods below.
# YOUTUBE_COOKIES_FROM_BROWSER=edge
# YOUTUBE_COOKIES_FILE=/absolute/path/to/cookies.txt
# YOUTUBE_COOKIES_BASE64=base64-encoded-cookies-txt
# =============================================
# Crown Commend (YouTube AI Comment Generator)
# =============================================
# Gemini API Key - Get from https://ai.google.dev/
COMMEND_GEMINI_API_KEY=your-gemini-api-key
# YouTube OAuth Token JSON - Required for posting comments
# This is a JSON string containing YouTube OAuth credentials
# Generate using generate_youtube_token.py
COMMEND_TOKEN_JSON={"token": "your-oauth-token", "refresh_token": "your-refresh-token", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "your-client-id", "client_secret": "your-client-secret", "scopes": ["https://www.googleapis.com/auth/youtube.force-ssl"]}
# =============================================
# HuggingFace Spaces Specific
# =============================================
# These are automatically set by HuggingFace Spaces
# HF_HOME=/app/.cache
# TRANSFORMERS_CACHE=/app/.cache