244 lines
9.9 KiB
JSON
244 lines
9.9 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
|
|
},
|
|
|
|
"licensing": {
|
|
"_section": "Short-lived signed lease from the separately deployed EchoionLicensing service. Production release configurations must set required=true.",
|
|
"required": false,
|
|
"serviceUrl": "https://license.example.com",
|
|
"productId": "echoion",
|
|
"_activationTokenEnv": "The environment variable contains the activation token; its value is never stored in config or logs.",
|
|
"activationTokenEnv": "ECHOION_LICENSE_TOKEN",
|
|
"refreshInterval": "6h",
|
|
"retryInterval": "5m",
|
|
"maximumLeaseLifetime": "24h",
|
|
"developmentMode": false,
|
|
"developmentKeys": []
|
|
},
|
|
|
|
"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": {
|
|
"kind": "component-layout",
|
|
"_url": "Empty uses the channel catalog embedded by the release build. A component-layout value may be a feed base URL or an exact feeds/<channel>/catalog.json URL.",
|
|
"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": "ECHOION_LICENSE_TOKEN"
|
|
}
|
|
},
|
|
"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": {}
|
|
}
|
|
},
|
|
|
|
"logging": {
|
|
"_section": "Process logs below the state directory. Split mode writes one exact-level file per severity plus optional all.log; all files rotate as one bounded snapshot.",
|
|
"console": true,
|
|
"level": "debug",
|
|
"splitByLevel": true,
|
|
"combined": true,
|
|
"_legacyFileName": "Used only when splitByLevel is false.",
|
|
"fileName": "echoion.log",
|
|
"maxFileSizeBytes": 10485760,
|
|
"maxFiles": 10,
|
|
"_format": "pattern, json (JSON Lines), or logfmt",
|
|
"format": "pattern",
|
|
"pattern": "[{time}] [{level}] [{thread}] {file} - {message}",
|
|
"_mode": "async, immediate, or buffered",
|
|
"mode": "async",
|
|
"queueCapacity": 2048,
|
|
"_overflowPolicy": "block, drop-newest, or drop-oldest",
|
|
"overflowPolicy": "block"
|
|
},
|
|
|
|
"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
|
|
}
|
|
}
|