Configuration
Rustalink uses a config.toml file for predictable and readable settings.
Basic Configuration
Section titled “Basic Configuration”| Section | Parameter | Type | Default | Description |
|---|---|---|---|---|
| Server | port | number | 2333 | Port for REST and WebSocket |
| Server | address | string | 0.0.0.0 | Binding network address |
| Server | password | string | - | Authorization password |
| Audio | item_timeout_ms | number | 3000 | Audio stream resolve timeout |
Example Config
Section titled “Example Config”[server]port = 2333address = "0.0.0.0"password = "youshallnotpass"
[audio]item_timeout_ms = 3000
[plugins]# Plugin-specific settingsCommon Configuration Presets
Section titled “Common Configuration Presets”Optimized for 500+ concurrent players and low latency.
[server]password = "change_me"# Buffered for unstable networksitem_timeout_ms = 5000
[audio]# Increase buffer duration for smoother playbackbuffer_duration_ms = 400Optimized for small VPS with limited RAM.
[server]password = "change_me"item_timeout_ms = 2000
[audio]# Lower buffer duration to save memorybuffer_duration_ms = 200Customizing Logging
Section titled “Customizing Logging”Rustalink uses the standard Rust logging architecture. You can control verbosity using the RUST_LOG environment variable.
| Level | Description |
|---|---|
error | Only critical failures |
info | Default production level |
debug | Detailed development logs |