Files
NovaSonic/.env.example
T
HoneyandClaude Sonnet 4.6 468827571a feat: switch Spotify auth to official Client Credentials Flow
Replaces the broken open.spotify.com/get_access_token scrape with
accounts.spotify.com/api/token (Basic auth, client_credentials grant).
Adds SPOTIFY_CLIENT_ID/SECRET to config, docker-compose, and .env.example.
Health endpoint now reports spotify.configured; frontend disables the
importer and shows a setup guide when credentials are missing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-09 22:57:01 +02:00

32 lines
1.0 KiB
Bash

# Copy to .env and fill in your values
# Pre-fills the URLs on the setup screen
NAVIDROME_URL=https://music.yourdomain.com
BACKEND_URL=https://novasonic-api.yourdomain.com
# Absolute path to your Navidrome music library on the host
MUSIC_PATH=/srv/navidrome/music
AUDIO_FMT=mp3 # mp3 | flac | opus | best (used by yt-dlp)
AUDIO_QUALITY=0 # 0 = best quality (used by yt-dlp)
MAX_PARALLEL=2
# Download backend: ytdlp | squid | auto
# ytdlp - always use yt-dlp
# squid - always use squid.wtf (Qobuz)
# auto - try squid.wtf first, fall back to yt-dlp if not found (default)
DOWNLOAD_BACKEND=auto
# Quality for squid.wtf / Qobuz downloads
# mp3 - MP3 320 kbps
# flac - FLAC 16-bit / 44.1 kHz
# hi-res - FLAC 24-bit / 96 kHz
SQUID_QUALITY=mp3
# Spotify Importer (optional — free, no Premium needed)
# 1. Go to https://developer.spotify.com/dashboard and create an app
# 2. Set any name, Redirect URI: http://localhost
# 3. Copy the Client ID and Client Secret below
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=