-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathenv.example
More file actions
56 lines (45 loc) · 2.27 KB
/
env.example
File metadata and controls
56 lines (45 loc) · 2.27 KB
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
51
52
53
54
55
# Server Configuration
# PORT is auto-set: 5000 in development, 3000 in production
# Only set PORT if you want to override (not recommended)
# PORT=3000
ADMIN_PORT=3001
# NODE_ENV should NOT be set in development - only set to 'production' when deploying
# NODE_ENV=production
CLIENT_URL=http://localhost:3000
# Admin UI in development runs on port 3002 (Vite); use that origin for CORS + cookies
ADMIN_CLIENT_URL=http://localhost:3002
# Signs admin session cookies (set a long random value in production)
SESSION_SECRET=
# Optional TOTP (base32 secret); when set, login requires an authenticator code
# ADMIN_TOTP_SECRET=
# Spotify API Credentials
# Get these from https://developer.spotify.com/dashboard
SPOTIFY_CLIENT_ID=your_client_id_here
SPOTIFY_CLIENT_SECRET=your_client_secret_here
# Spotify OAuth Redirect URI (auto-configured, but can be overridden)
# IMPORTANT: Spotify no longer allows "localhost" - must use 127.0.0.1
# Development: http://127.0.0.1:5000/api/auth/callback (backend runs on 5000)
# Production: http://127.0.0.1:3000/api/auth/callback (backend runs on 3000)
# Leave empty to auto-detect, or set explicitly
# SPOTIFY_REDIRECT_URI=http://127.0.0.1:5000/api/auth/callback
# Spotify Refresh Token (auto-fetched via OAuth, or set manually)
# The app will auto-fetch this when you click "Connect Spotify Account"
SPOTIFY_REFRESH_TOKEN=
# Spotify User ID (auto-fetched via OAuth, or set manually)
SPOTIFY_USER_ID=
# Optional: GitHub OAuth (require guests to sign in with GitHub)
# Create OAuth App: https://github.com/settings/developers
# Dev callback: http://localhost:3000/api/github/callback (must match CLIENT_URL for cookie to work)
# GITHUB_CLIENT_ID=
# GITHUB_CLIENT_SECRET=
# GITHUB_REDIRECT_URI=
# Optional: Google OAuth (require guests to sign in with Google)
# Create credentials: https://console.cloud.google.com/apis/credentials
# Dev callback: http://localhost:3000/api/google/callback (must match CLIENT_URL for cookie to work)
# Prod: https://your-domain.com/api/google/callback
# GOOGLE_CLIENT_ID=
# GOOGLE_CLIENT_SECRET=
# GOOGLE_REDIRECT_URI=
# Database Path (optional, defaults to ./data/queue.db)
DB_PATH=./data/queue.db
# Note: voting_enabled, voting_auto_promote, voting_downvote_enabled, prequeue_enabled, aura_enabled are managed in the admin Configuration panel