Files
Echoion/config.example.json
T
faumaray bdd69f0aad update
Signed-off-by: faumaray <faumaray@gmail.com>
2026-07-25 23:44:48 +03:00

209 lines
8.6 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": "Legacy compatibility flag. Used only when the top-level urlShortening section is absent.",
"enableUrlShortening": true
},
"urlShortening": {
"_section": "Provider-neutral URL shortening. The internal provider requires web.publicUrl and is disabled safely when it is empty; external providers do not require web.publicUrl. Failures leave shortenedUrl empty and never change originalUrl.",
"enabled": false,
"provider": "url-shortener-internal",
"sources": ["youtube"],
"timeout": "3s"
},
"plugins": {
"_section": "Per-plugin JSON configuration files. An empty path uses plugins.d beside this file.",
"configDirectory": ""
},
"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 public dashboard and bridges authenticated 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. Required when url-shortener-internal is enabled; also used by !help when the web interface is enabled.",
"publicUrl": "",
"_watchUrl": "External VoidWatch deployment linked from Echoion. The retired /watch path redirects here when set.",
"watchUrl": "",
"_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,
"_trustedProxyCidrs": "Trust X-Forwarded-For only from these immediate proxy CIDRs. Empty ignores it.",
"trustedProxyCidrs": []
},
"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
},
"updates": {
"_section": "Signed component updates for the runtime bundle, Core, and already-installed managed plugins",
"enabled": true,
"checkInterval": "6h",
"jitter": "30m",
"maintenanceWindowUtc": {
"start": "03:00",
"duration": "2h"
},
"maxRuntimeDeferral": "24h",
"_retainHealthyVersions": "Previous committed healthy versions kept in addition to the active version",
"retainHealthyVersions": 2,
"sources": {
"official": {
"_url": "Empty uses the URL embedded by the release build. Custom sources must use HTTPS (or a local file source under incoming/).",
"url": "",
"_publicKeys": "Ed25519 trust roots. Empty inherits the official keys embedded by the release build.",
"publicKeys": [],
"allowUnsigned": false,
"_bearerTokenEnv": "Environment variable name only; the token value is never stored in this file or returned to the web UI.",
"bearerTokenEnv": ""
}
},
"runtime": {
"enabled": true,
"source": "official",
"channel": "stable",
"autoApply": true
},
"core": {
"enabled": true,
"source": "official",
"channel": "stable",
"autoApply": true
},
"plugins": {
"enabled": true,
"source": "official",
"channel": "stable",
"autoApply": true,
"managedOnly": true,
"overrides": {}
}
},
"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
}
}