owntone-server/docs/configuration.md

50 lines
1.4 KiB
Markdown
Raw Normal View History

2024-04-22 11:32:53 -04:00
# Configuration
The configuration of OwnTone is usually located in `/etc/owntone.conf`.
2024-04-22 11:32:53 -04:00
## Format
Each setting consists of a name and a value. There are different types of settings: string, integer, boolean, and list.
Comments are preceded by a hash sign.
The format is as follow:
```conf
# Section
section {
# String value
setting = "<string-value>"
# Integer value
setting = <integer-value>
# Boolean
setting = <true|false>
# List
setting = { "value a", "value b", "value n"}
}
```
Some settings are device specific, in which case you add a section where you specify the device name in the heading. Say you're tired of loud death metal coming from your teenager's room:
2024-04-22 11:32:53 -04:00
```conf
airplay "Jared's Room" {
max_volume = 3
2024-04-22 11:32:53 -04:00
}
```
## Most important settings
2024-04-22 11:32:53 -04:00
### general: uid
2024-04-22 11:32:53 -04:00
Identifier of the user running OwnTone.
2024-04-22 11:32:53 -04:00
Make sure that this user has read access to your configuration of `directories` in the `library` config section, and has write access to the database (`db_path`), cache directory (`cache_dir`) and log file (`logfile`). If you plan on using local audio then the user must also have access to that.
2024-04-22 11:32:53 -04:00
### library: directories
2024-04-22 11:32:53 -04:00
Path to the directory or directories containing the media to index (your library).
2024-04-22 11:32:53 -04:00
## Other settings
2024-04-22 11:32:53 -04:00
See the [template configuration file](https://raw.githubusercontent.com/owntone/owntone-server/refs/heads/master/owntone.conf.in) for a description of all the settings.