Files
fluxer/docker/config_example.json
T
NoLogicAlan 90a53f047f Optimize MySQL connection pools & add Docker healthcheck with graceful queue flush (#21, #12)
- 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
2026-10-22 01:37:42 +03:00

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
}
}