mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
- Unify MySQL pools in src/db/PoolManager.mjs shared across Settings, TrackOptions, LastFm, Dashboard, and PlayerStateStore - Support global config.mysql.connectionLimit (default 15), preventing connection starvation - Add gracefulShutdown() in Bot.mjs to flush active player queues and playback positions to MySQL on SIGTERM/SIGINT - Update shard.mjs to forward SIGTERM and await shard worker queue flushes before exit - Add event-loop responsiveness healthcheck in docker-compose.yml and Dockerfile via heartbeat probe - Document connectionLimit and queue persistence in README and config templates
65 lines
1.3 KiB
JSON
65 lines
1.3 KiB
JSON
{
|
|
"token": "YOUR_BOT_TOKEN_HERE",
|
|
"prefix": "%",
|
|
"embedColor": "0xe9196c",
|
|
"owners": [],
|
|
"mysql": {
|
|
"host": "mysql",
|
|
"port": 3306,
|
|
"user": "remix",
|
|
"password": "remix_pw",
|
|
"database": "remix",
|
|
"connectionLimit": 15
|
|
},
|
|
"nodelink": {
|
|
"host": "nodelink",
|
|
"port": 3000,
|
|
"password": "youshallnotpass",
|
|
"requestTimeout": 60000
|
|
},
|
|
"lastfm": {
|
|
"apiKey": "",
|
|
"apiSecret": "",
|
|
"scrobbleThreshold": 0.5,
|
|
"scrobbleMinMs": 240000
|
|
},
|
|
"dashboard": {
|
|
"enabled": false,
|
|
"redis": {
|
|
"url": "redis://redis:6379"
|
|
}
|
|
},
|
|
"logging": {
|
|
"enabled": true,
|
|
"warn": true,
|
|
"player": true,
|
|
"inactivity": false,
|
|
"aloneCheck": false,
|
|
"voice247": true,
|
|
"voiceState": false,
|
|
"voice": false,
|
|
"mediaplayer": false,
|
|
"commands": true,
|
|
"guild": true,
|
|
"recovery": true,
|
|
"settings": true,
|
|
"lavalink": true,
|
|
"dashboard": false,
|
|
"redis": false
|
|
},
|
|
"timers": {
|
|
"inactivityTimeout": 180000,
|
|
"aloneCheckInterval": 30000,
|
|
"aloneCheckDebounce": 500,
|
|
"rejoin247Delay": 3000,
|
|
"leave247RejoinDelay": 5000,
|
|
"intentionalLeaveTTL": 10000
|
|
},
|
|
"presenceInterval": 30000,
|
|
"presenceContents": [],
|
|
"fluxer.js": {
|
|
"timeout": 15000,
|
|
"retries": 3
|
|
}
|
|
}
|