Files
Echoion/config.example.json
T
faumaray 24fecc90f3 making WEB
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-11 00:47:52 +03:00

147 lines
6.5 KiB
JSON

{
"_schema": "Echoion Music Bot Configuration v3.0",
"_documentation": "https://github.com/faumaray/echoion/wiki/Configuration",
"_format_note": "v3 serializes the config types directly: durations are strings (\"30000ms\", also accepts \"30s\"/\"5m\"/\"1h\"), enums use their names, and the proxy is a nested object (or null). Unknown keys (the _comment fields below) are ignored on load.",
"bot": {
"_section": "Core Bot Settings",
"botName": "Echoion",
"commandPrefix": "!",
"_language": "Default bot language for users who haven't picked one: \"en\" or \"ru\"",
"language": "en",
"defaultVolume": 0.5,
"maxQueueSize": 100,
"_trackTimeout": "How long the engine waits (emitting silence) for a slow stream resolve before skipping the track",
"trackTimeout": "10s",
"_crossfade": "Crossfade between tracks (e.g. \"3s\"); \"0ms\" = plain gapless handoff",
"crossfade": "0ms",
"allowPlaylistImports": true
},
"youtube": {
"_section": "YouTube Integration",
"_apiKey": "Optional: YouTube Data API v3 key for faster searches",
"youtubeApiKey": null,
"_cookies": "Fix 'Sign in to confirm' errors using ONE of these methods:",
"_cookies_method_1": "Path to cookies.txt file (export from browser extension)",
"youtubeCookiesPath": null,
"_cookies_method_2": "Use cookies directly from browser: chrome, firefox, safari, edge",
"cookiesFromBrowser": null,
"_performance": "yt-dlp performance tuning (ytDlpMaxConcurrent capped at 8)",
"ytDlpMaxConcurrent": 4,
"ytDlpAsyncEnabled": true,
"_urlShortening": "Shorten YouTube links using faumaray.ru",
"enableUrlShortening": true
},
"network": {
"_section": "Network & Proxy Settings",
"_proxy": "Optional proxy for YouTube access. Set to null to disable, or an object: {\"kind\": \"Http\"|\"Socks5\", \"host\": \"...\", \"port\": 1080, \"username\": null, \"password\": null}",
"proxy": null,
"_rpc": "WebSocket RPC server for Desktop/API clients",
"rpcEnabled": true,
"rpcPort": 8765,
"rpcBindAddress": "127.0.0.1"
},
"web": {
"_section": "Browser web interface (EchoionWeb): serves the UI, the sync-watch WebSocket (/ws), and bridges browser RPC through /rpc — only this port needs to be reachable; the RPC server can stay on 127.0.0.1.",
"enabled": false,
"port": 8080,
"_bindAddress": "Use 0.0.0.0 to allow access from other machines.",
"bindAddress": "127.0.0.1",
"webRoot": "./web",
"_rpcUrl": "RPC WebSocket URL for the browser. Empty = same-origin /rpc bridge (recommended); an absolute ws:// URL overrides.",
"rpcUrl": "",
"_publicUrl": "Public address users reach the web interface at, e.g. https://bot.example.com. When set (and the web interface is enabled), !help links to it.",
"publicUrl": "",
"_nowPlayingVideo": "Allow the Now Playing view to show the current song's video (muted, synced). Users can still disable it locally; set false to turn it off for everyone.",
"nowPlayingVideo": true
},
"sources": {
"_section": "Music source resolution chain (native paths first, proxied yt-dlp last)",
"_order": "Sources are tried in this order. innertube is the native YouTube player API; yandex is native Yandex Music; ytdlp-proxied is the proxied fallback and always works when a proxy is configured.",
"order": ["innertube", "yandex", "direct-url", "ytdlp-direct", "ytdlp-proxied"],
"_failureCooldown": "How long a failing source is skipped before being retried",
"failureCooldown": "5m",
"_hedgeDelay": "Race a second source when the first hasn't answered within this delay (first success wins); \"0ms\" disables",
"hedgeDelay": "300ms",
"_yandex": "Native Yandex Music. Full tracks need an OAuth token from an account with Plus (see yandex-music token guides); without one, yandex URLs fall back to yt-dlp.",
"yandexEnabled": true,
"yandexToken": null,
"_innertube": "Native YouTube player API (fastest path, one HTTP POST). Geo-blocked without a proxy; requireProxy skips it when none is configured.",
"innertubeEnabled": true,
"innertubeRequireProxy": true
},
"teamspeak": {
"_section": "TeamSpeak Server Connection",
"address": "localhost",
"port": 9987,
"serverPassword": "",
"nickname": "EchoionBot",
"_channel": "Default channel configuration",
"defaultChannelId": null,
"channelPassword": null,
"_permissions": "Server group IDs for access control",
"adminGroups": [6, 7],
"djGroups": [8],
"bannedGroups": []
},
"security": {
"_section": "Security & Authentication",
"requireAuthForAdmin": true,
"maxLoginAttempts": 5,
"lockoutDuration": "300000ms",
"sessionTimeout": "3600000ms",
"enableAuditLog": true,
"_api": "API authentication for RPC clients",
"apiKey": null,
"allowCors": false,
"corsOrigins": ["http://localhost:3000"]
},
"features": {
"_section": "Feature Toggles",
"enableHotReload": true,
"enableAutoReload": false,
"enableAutoUpdateCheck": true,
"_playback": "Playback behavior settings",
"autoStartOnSubscribe": true,
"pauseOnEmptySubscribers": true,
"resumeOnSubscriberReturn": true,
"_autoplay": "Radio mode: when the queue runs dry, enqueue tracks related to the last played one",
"autoplay": false,
"_loudness": "Normalize perceived volume across tracks (slow AGC toward the target level)",
"normalizeLoudness": false,
"targetLoudnessDb": -14.0,
"_queue": "Initial queue state on cold start (shuffleMode: off|random, repeatMode: off|all); runtime toggles are not written back",
"shuffleMode": "off",
"repeatMode": "off",
"maxHistorySize": 50,
"_voteSkip": "Votes needed to skip the current track; 0 = majority of online subscribers",
"voteSkipThreshold": 0
},
"advanced": {
"_section": "Advanced Settings (Modify with caution)",
"_cache": "Local audio track cache (files reused across plays and restarts)",
"cacheEnabled": true,
"cacheMaxSize": "1GB",
"cacheTTL": 86400,
"tempCleanupInterval": 3600
}
}