Spaces:
Sleeping
Sleeping
File size: 2,106 Bytes
f488c7a 5763c36 f488c7a f30028a 5763c36 f30028a 5763c36 f30028a c4db5be f488c7a 5763c36 f488c7a 5763c36 f488c7a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | # 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
|