Configuration
Kolumi Server is configured with environment variables, usually in the .env file next to compose.yaml.
On this page
After changing .env, apply it with docker compose up -d. Compose recreates the container with the new values; your data in /data stays.
Environment variables
| Variable | Default | What it does |
|---|---|---|
KOLUMI_PUBLIC_URL | http://localhost:8080 | The address phones and browsers use to reach Kolumi Server. Used for QR codes, invitation links, sign-in redirects and cookies. Set it to your HTTPS address. |
KOLUMI_NAME | Kolumi Server | Name shown in the app when someone connects. |
TZ | Europe/Berlin | Time zone. Good night times and the daily listening time follow it. |
KOLUMI_SECRET_KEY | empty | Key for stored secrets and tokens. Empty means Kolumi Server creates /data/secret.key on the first start. Create one with openssl rand -base64 32. |
KOLUMI_ADDR | :8080 | Address and port inside the container. |
KOLUMI_DATA_DIR | /data | Data folder inside the container (database and key). |
KOLUMI_LOG_LEVEL | info | debug, info, warn or error. |
ABS_URL | empty | Address of Audiobookshelf as seen from the container, e.g. http://audiobookshelf:80. Empty switches Audiobookshelf off. |
ABS_ADMIN_TOKEN | empty | API key of an Audiobookshelf admin. |
ABS_ADMIN_USERABS_ADMIN_PASSWORD | empty | Instead of the key: an admin login. Kolumi Server then creates an API key named “kolumi” once; afterwards you can remove both lines. |
ND_URL | empty | Address of Navidrome as seen from the container, e.g. http://navidrome:4533. Empty switches Navidrome off. |
ND_ADMIN_USERND_ADMIN_PASSWORD | empty | A Navidrome admin with a password. Kolumi Server uses it to create and set up accounts. |
ND_USER_HEADER | Remote-User | Header Kolumi Server uses to sign people in to Navidrome. Must match ND_EXTAUTH_USERHEADER in Navidrome. |
KOLUMI_OIDC_ISSUER | empty | Issuer URL of your sign-in provider. Empty means no single sign-on. |
KOLUMI_OIDC_CLIENT_ID | kolumi | Client ID of the app (public client). |
KOLUMI_OIDC_LABEL | SSO | Text on the sign-in button, e.g. the name of your provider. |
KOLUMI_OIDC_WEB_CLIENT_IDKOLUMI_OIDC_WEB_CLIENT_SECRET | empty | Optional confidential client for the web interface. |
KOLUMI_ADMIN_GROUP | kolumi-admin | Members of this group (from the groups claim) are admins of the whole server. |
KOLUMI_ADMIN_SUBS | empty | Comma-separated OIDC subjects that are admins, if you don’t use groups. |
KOLUMI_SIGNUP | sso | Who may create a household without an invitation: sso (anyone who signs in with SSO), invite or closed (only with an invitation). Admins can always create one. |
KOLUMI_SIGNUP_GROUP | empty | With sso: only members of this group may create a household. |
KOLUMI_DIRECT_FALLBACK | false | true lets adults on their own phone keep listening directly through Audiobookshelf and Navidrome while Kolumi Server is down. See Direct fallback. |
ABS_PUBLIC_URL | empty | Address of Audiobookshelf as the phones reach it from outside, e.g. https://books.example.org. Only used for the direct fallback. |
ND_PUBLIC_URL | empty | The same for Navidrome, e.g. https://music.example.org. Only used for the direct fallback. |
KOLUMI_DIRECT_ND_PASSWORDS | false | true lets Kolumi Server set a random Navidrome password for these people, so the direct fallback also covers music. Without it, only Audiobookshelf takes part. |
KOLUMI_LYRICS | off | lrclib looks up missing lyrics on LRCLIB (see Lyrics below). |
KOLUMI_LYRICS_URL | https://lrclib.net | Your own LRCLIB instance, if you run one. |
KOLUMI_PATH_MAP | empty | Only if Kolumi Server sees the media folders under other paths than Audiobookshelf and Navidrome: /path/there=/path/here;… |
Leave Audiobookshelf or Navidrome empty if you don’t use it. Kolumi Server then works with the other one alone.
Audiobookshelf
- Admin access: create an API key for an admin user under Settings → API Keys and put it into
ABS_ADMIN_TOKEN. Alternatively setABS_ADMIN_USERandABS_ADMIN_PASSWORDonce; Kolumi Server then creates a key named “kolumi” and you can remove both lines again. - Accounts: for each person, Kolumi Server links an existing user with the same email address, or with the same username, or creates a new one with a random password nobody sees. It sets the libraries and tag permissions that fit the person’s age. Admin users in Audiobookshelf keep their own rights.
- With single sign-on: in Audiobookshelf under Settings → Authentication, set OpenID’s Match existing users by to Email. Then someone who later signs in to the Audiobookshelf web app with the same SSO account lands in the same account. The Services page in Kolumi Server tells you if this is missing.
- Folder watcher: leave Audiobookshelf’s option to disable the folder watcher off, so new titles show up on their own.
Navidrome
- Version 0.64.1 or newer. In earlier versions, bookmarks, playlist titles and “now playing” could slip past the per-library access that Kolumi Server relies on.
- Sign-in by header:
ND_EXTAUTH_USERHEADERandND_EXTAUTH_TRUSTEDSOURCESon the Navidrome container, see install, step 2. The Services page checks whether Navidrome accepts the header. - Admin:
ND_ADMIN_USERandND_ADMIN_PASSWORDof a Navidrome admin with a password. Kolumi Server uses it to create accounts and set their libraries. - New music right away: Navidrome notices new folders by itself and scans only those. With
ND_SCANNER_WATCHERWAIT: 1son the Navidrome container, new files show up after about a second instead of five. This needs the library on a local disk; on NFS, SMB, rclone or mergerfs mounts Navidrome may not notice changes. If a title is still missing after eight seconds, Kolumi Server starts a scan itself.
Existing accounts
If someone already has an account in Audiobookshelf or Navidrome, Kolumi Server links it when the person is created, by email address or username. Otherwise it creates new accounts named <household>-<person>. You can link a person to an existing account later, for example to keep their progress, favourites and playlists: in the web interface under Households, open the menu next to the person and choose Link to an existing account. The previously linked accounts stay in Audiobookshelf and Navidrome.
Sync accounts on the same page creates missing accounts and writes the access rights again, if something got out of step.
Lyrics
Kolumi shows the lyrics Navidrome knows, embedded in the file or as an .lrc file next to it. Kolumi Server can look up missing lyrics on LRCLIB, a public lyrics database, synced where available:
KOLUMI_LYRICS=lrclibThis is off by default, because song lyrics are protected by copyright; switch it on only for private use in your own household. The phones then ask Kolumi Server, never LRCLIB directly. Found lyrics are kept for 30 days, misses for a day. If Kolumi Server can also see your music folder under the same path as Navidrome (or through KOLUMI_PATH_MAP) and may write there, it saves missing lyrics as .lrc files next to the songs, so every app that uses Navidrome shows them.
With LRCLIB switched on, your Kolumi Server sends song title, artist, album and length to LRCLIB. Without Kolumi Server, the app has its own switch for this under Settings → Playback.
Direct fallback when Kolumi Server is down
Normally the app reaches Audiobookshelf and Navidrome only through Kolumi Server. If your server is down for maintenance or crashes, downloads and the search in them keep working, but browsing and streaming don’t. With the direct fallback, Kolumi Server hands adults a sign-in of their own for Audiobookshelf and Navidrome in advance. The app uses it only while Kolumi Server doesn’t answer, and switches back by itself when it does. A banner on the home screen tells you which mode you are in. It is off by default.
KOLUMI_DIRECT_FALLBACK=true
ABS_PUBLIC_URL=https://books.example.org
ND_PUBLIC_URL=https://music.example.org
KOLUMI_DIRECT_ND_PASSWORDS=trueThen restart with docker compose up -d.
KOLUMI_DIRECT_FALLBACK=trueswitches it on. Without it, Kolumi Server never hands out a sign-in.ABS_PUBLIC_URLandND_PUBLIC_URLare the addresses at which phones reach Audiobookshelf and Navidrome from outside, preferably withhttps://. If one is missing, that service doesn’t take part. Both must be reachable without Kolumi Server, so give them their own addresses in your reverse proxy. Withhttp://addresses, keys and tokens travel unencrypted.KOLUMI_DIRECT_ND_PASSWORDS=trueis only about Navidrome, see below. Without it, the fallback covers Audiobookshelf only.
Who gets it, and who never does
Only managers and adults, and only on a personal device that belongs to exactly this person. Kids and teens, kiosk devices and family devices never get a direct sign-in, not even with an adult profile on them, and the app checks the role and device type again every time before it uses one. So bedtime, daily listening time, the volume limit and hidden titles can’t be bypassed this way. The sign-in always belongs to the person’s own account, never to the admin account of Kolumi Server.
What each service hands out
- Audiobookshelf
- Every device gets its own API key named
kolumi-direct-…for the person’s Audiobookshelf account. If that person is an admin in Audiobookshelf, the key has the same rights. - Navidrome
- Navidrome has no per-device keys. With
KOLUMI_DIRECT_ND_PASSWORDS=true, Kolumi Server sets a random password on the person’s Navidrome account and gives the app only the salt and token of the Subsonic API, never the password. Anyone who signed in to Navidrome directly with their own password can’t do that afterwards, which is why this has its own switch. Navidrome admins are never touched and get no direct access to Navidrome.
When it is withdrawn
Kolumi Server deletes the Audiobookshelf key and replaces the Navidrome password when a device signs out or is deleted, when a person is removed or becomes a teen or kid, when the device becomes a kiosk or family device, and when you switch the fallback off (remove the lines and restart). If Audiobookshelf or Navidrome can’t be reached at that moment, Kolumi Server catches up every five minutes. After a password change, a person’s other devices get a new token the next time they reach Kolumi Server.
What works in direct mode
Browsing, search, streaming, covers, listening progress and new downloads. What only Kolumi Server can do pauses until it is back: wishes, profiles and management, notifications, listening together, areas, Kolumi Server’s playlists, lyrics from the server, and signing in a Kolumi Connect speaker. A track that was already streaming through Kolumi Server when it went down stops and has to be started again.
Not tested against every setup: try it once on your own server, with Kolumi Server stopped, before you rely on it.
Where the data lives
Everything Kolumi Server stores is in /data inside the container: the SQLite database kolumi.db (with its -wal and -shm files) and, unless you set KOLUMI_SECRET_KEY, the key file secret.key. Your audiobooks and music stay in Audiobookshelf and Navidrome. See backups.
Something wrong or missing on this page? Write to hello@kolumi.app.