Server Configuration
The server is configured via a TOML file. A minimal configuration looks like:
[server]
host = "0.0.0.0"
port = 7700
api_key = "your-secret-key"
[library]
content_paths = ["/music"]
[storage]
db_path = "/data/muorg.db"
backup_dir = "/data/muorg-backups"
backup_retention_count = 5
[cors]
allowed_origins = ["*"]
[transcoding]
bitrate = 320
format = "mp3"
sample_rate = 48000
Configuration Reference
[server]
| Key | Default | Description |
|---|---|---|
host | "127.0.0.1" | Bind address |
port | 7700 | HTTP port |
api_key | "change-me" | API key for Bearer auth |
[library]
| Key | Default | Description |
|---|---|---|
content_paths | [] | Directories to scan for music |
scan_on_startup | true | Auto-scan on server start |
[transcoding]
| Key | Default | Description |
|---|---|---|
bitrate | 128 | Output bitrate in kbps (128/160/192/256/320) |
format | "mp3" | Output format (currently only mp3) |
sample_rate | 44100 | Output sample rate in Hz |