Files
sptify2yt/.env.example
MrUnknownDE 9979697acf first commit
2025-12-28 17:57:20 +01:00

32 lines
983 B
Plaintext

# Spotify API Credentials
# Get these from https://developer.spotify.com/dashboard/
SPOTIFY_CLIENT_ID=your_spotify_client_id
SPOTIFY_CLIENT_SECRET=your_spotify_client_secret
# YouTube/Google API Credentials
# Get these from https://console.cloud.google.com/
# Enable "YouTube Data API v3" and create OAuth 2.0 credentials
YOUTUBE_CLIENT_ID=your_youtube_client_id
YOUTUBE_CLIENT_SECRET=your_youtube_client_secret
# Session Secret (generate a random string)
SESSION_SECRET=your_random_session_secret_here
# Server Port
PORT=3000
# Base URL (used for OAuth callbacks)
# IMPORTANT: Spotify requires HTTPS for callbacks!
# For local development, use a tool like local-ssl-proxy or ngrok
BASE_URL=https://localhost:3000
# Cache Settings
# Path where analysis jobs are cached (relative or absolute)
CACHE_PATH=./cache
# Maximum playlist size (tracks) that can be analyzed
MAX_PLAYLIST_SIZE=50
# Rate Limiting
# Delay between YouTube API calls in milliseconds
RATE_LIMIT_DELAY_MS=2000