-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.env.example
More file actions
83 lines (66 loc) · 2.52 KB
/
Copy path.env.example
File metadata and controls
83 lines (66 loc) · 2.52 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
PORT=8080
CACHE_ACCESS_TOKEN=""
# Provider Configuration
# Default lyrics provider: ttml, kugou (Kugou), legacy (Spotify-based)
DEFAULT_PROVIDER=ttml
# Cache Configuration
# For Railway deployments, use: /data/cache.db (requires volume mount)
# For local development, use: ./cache.db
CACHE_DB_PATH=./cache.db
# Cache Backup Path
# For Railway deployments, use: /data/backups (requires volume mount)
# For local development, use: ./backups
CACHE_BACKUP_PATH=./backups
# Stats Database Path (separate from cache to persist across cache clears)
# For Railway deployments, use: /data/stats.db (requires volume mount)
# For local development, use: ./stats.db
STATS_DB_PATH=./stats.db
# TTML API Configuration
# Bearer tokens are now auto-scraped from the upstream provider - only MUTs needed
# Single account:
#TTML_MEDIA_USER_TOKEN=your_media_user_token_here
# Multi-account support (comma-separated, preferred):
# Media User Tokens for multiple accounts - used for rate limit distribution
TTML_MEDIA_USER_TOKENS=mut1,mut2,mut3
# Token source for auto-scraping bearer tokens (web frontend URL)
TTML_TOKEN_SOURCE_URL=
# Storefront is used for both browse path (/{storefront}/browse) and API requests
# (optional, defaults to storefront location for user, falls back to 'in')
# TTML_STOREFRONT=us
TTML_BASE_URL=
TTML_SEARCH_PATH=
TTML_LYRICS_PATH=
# Feature Flags
FF_CACHE_COMPRESSION=true
FF_CACHE_ONLY_MODE=false
# Token Expiration Notifications (Optional)
# Configure at least one notifier to receive token expiration alerts
# Telegram (Recommended for phone notifications)
#NOTIFIER_TELEGRAM_BOT_TOKEN=your_bot_token_here
#NOTIFIER_TELEGRAM_CHAT_ID=your_chat_id_here
# Email
#NOTIFIER_SMTP_HOST=smtp.gmail.com
#NOTIFIER_SMTP_PORT=587
#NOTIFIER_SMTP_USERNAME=your_email@gmail.com
#NOTIFIER_SMTP_PASSWORD=your_app_password
#NOTIFIER_FROM_EMAIL=your_email@gmail.com
#NOTIFIER_TO_EMAIL=your_email@gmail.com
# Ntfy.sh (Simple push notifications)
#NOTIFIER_NTFY_TOPIC=my_unique_topic_name
#NOTIFIER_NTFY_SERVER=https://ntfy.sh
# External Lyrics API (binimum.org) - posts lyrics data for archival
#BINI_API_KEY=your_bini_api_key_here
#BINI_SECRET_KEY=your_bini_secret_key_here
#BINI_API_URL=https://lyrics-api.binimum.org/
# Legacy Provider Configuration (for /legacy/getLyrics endpoint)
# These are required only if using the legacy Spotify-based provider
#LYRICS_URL=
#TRACK_URL=
#TOKEN_URL=
#CLIENT_ID=
#CLIENT_SECRET=
#OAUTH_TOKEN_URL=https://accounts.spotify.com/api/token
#APP_PLATFORM=WebPlayer
#USER_AGENT=Mozilla/5.0
#COOKIE_STRING_FORMAT=sp_dc=%s
#COOKIE_VALUE=