Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

delune reads its settings from three places. Command-line flags and environment variables win; config.toml fills in the rest; everything else lives in delune’s database and is changed from the web app. Connections set by flags or variables show as fixed in Settings → Connections.

delune serve

FlagEnvironment variableDefault
--bindDELUNE_BIND0.0.0.0:7474Address for the web app and API
--data-dirDELUNE_DATA_DIRdelune-dataWhere delune keeps its data (what’s in it)
--library-dirDELUNE_LIBRARY_DIR—The music folder Navidrome scans; imports go here
--naming-templateDELUNE_NAMING_TEMPLATE{album_artist}/[{year} - ]{album}/{track} - {title}Until naming is saved in the web app
--slsk-usernameDELUNE_SLSK_USERNAME—Soulseek account (with the password)
--slsk-passwordDELUNE_SLSK_PASSWORD—
--slsk-portDELUNE_SLSK_PORT2234Port other Soulseek users connect to
--navidrome-urlDELUNE_NAVIDROME_URL—Turns on sign-in, library checks and rescans (with the next two)
--navidrome-usernameDELUNE_NAVIDROME_USERNAME—A Navidrome admin
--navidrome-passwordDELUNE_NAVIDROME_PASSWORD—
Environment variable
DELUNE_LOGLog filter, e.g. debug or info,delune_soulseek=debug (default info)

Prefer environment variables (or config.toml) for passwords: flags end up in shell history and process listings.

config.toml

Written by delune setup and by Settings → Connections, in the data folder, readable only by its owner:

library_dir = "/srv/music"

[soulseek]
username = "your-name"
password = "…"
port = 2234

[navidrome]
url = "http://127.0.0.1:4533"
username = "delune"
password = "…"

Every part is optional. Changing connections in the web app saves this file and restarts delune in place.

delune setup

FlagEnvironment variable
--data-dirDELUNE_DATA_DIRWhere the configuration goes (asked for too)

delune-tui

Argument / flagEnvironment variable
SERVERDELUNE_SERVERdelune’s address, its host, or Navidrome’s address
--usernameDELUNE_USERNAMENavidrome username
--passwordDELUNE_PASSWORDNavidrome password (prefer the prompt)
--forgetForget the saved server and session

Settings in the web app

Everything else is set in the web app and saved in the database: appearance, naming and import options, automation, sharing and speed limits, people and permissions, the fetch command, Bandcamp links, follows and favourites.