Skip to content

Configuration

Koito is configured using environment variables. This is the full list of configuration options supported by Koito.

The suffix _FILE is also supported for every environment variable. This allows the use of Docker secrets, for example: KOITO_SUBSONIC_PARAMS_FILE=/run/secrets/subsonic-params will load the content of the file at /run/secrets/subsonic-params for the environment variable KOITO_SUBSONIC_PARAMS.

  • Default: admin
  • Description: The username for the user that is created on first startup. Only applies when running Koito for the first time.
  • Default: changeme
  • Description: The password for the user that is created on first startup. Only applies when running Koito for the first time.
  • Default: yuu
  • Description: The lowercase name of the default theme to be used by the client. Overridden if a user picks a theme in the theme switcher.
  • Default: false
  • Description: When true, Koito will not show any statistics unless the user is logged in.
  • Description: The address to bind to. The default blank value is equivalent to 0.0.0.0.
  • Default: 4110
  • Description: The port Koito will listen on.
  • Default: false
  • Description: When set to true, will log in JSON format.
  • Default: info
  • Description: One of debug | info | warn | error | fatal
  • Default: \s+·\s+
  • Description: The list of regex patterns Koito will use to separate artist strings, separated by two semicolons (;;).
  • Default: https://musicbrainz.org
  • Description: The URL Koito will use to contact MusicBrainz. Replace this value if you have your own MusicBrainz mirror.
  • Default: 1
  • Description: The number of requests to send to the MusicBrainz server per second. Unless you are using your own MusicBrainz mirror, do not touch this value.
  • Default: false
  • Description: Set to true if you want to relay requests from the ListenBrainz endpoints on your Koito server to another ListenBrainz compatible server.
  • Required: true if relays are enabled.
  • Description: The URL to which relayed requests will be sent to.
  • Required: true if relays are enabled.
  • Description: The user token to send with the relayed ListenBrainz requests.
  • Default: /etc/koito
  • Description: The location where import folders and image caches are stored.
  • Default: false
  • Description: Disables Deezer as a source for finding artist and album images.
  • Default: false
  • Description: Disables Cover Art Archive as a source for finding album images.
  • Default: false
  • Required: true if KOITO_SUBSONIC_PARAMS is set
  • Description: The URL of your subsonic compatible music server. For example, https://navidrome.mydomain.com.
  • Required: true if KOITO_SUBSONIC_URL is set
  • Description: The u, t, and s authentication parameters to use for authenticated requests to your subsonic server, in the format u=XXX&t=XXX&s=XXX. An easy way to find them is to open the network tab in the developer tools of your browser of choice and copy them from a request.
  • Required: false
  • Description: Your LastFM API key, which will be used for fetching images if provided. You can get an API key here,
  • Default: false
  • Description: Skips running the importer on startup.
  • Default: false
  • Description: When enabled, disables the rate limiter that Koito has on the /apis/web/v1/login endpoint.
  • Default: 0
  • Description: The amount of time to wait, in milliseconds, between listen imports. Can help when running Koito on low-powered machines.
  • Description: A unix timestamp. If an imported listen has a timestamp after this, it will be discarded.
  • Description: A unix timestamp. If an imported listen has a timestamp before this, it will be discarded.
  • Default: false
  • Description: When true, images will be downloaded and cached during imports.
  • Default: No CORS policy
  • Description: A comma separated list of origins to allow CORS requests from. The special value * allows CORS requests from all origins.
  • Deprecated as of: v0.2.1
  • Deprecated because: SQLite is the only supported database as of v0.2.1.
  • Default: false (will always be enabled in v0.2.0 onwards)
  • Description: Enables SQLite instead of PostgreSQL as the database engine. Automatically migrates data from PostgreSQL if KOITO_DATABASE_URL is also set on versions v0.1.8 to v0.1.10.
  • Deprecated as of: v0.2.1
  • Deprecated because: PostgreSQL is no longer a supported database as of v0.2.1.
  • Required: true if you have not yet migrated to SQLite (PostgreSQL support will be deprecated in v0.2.0 onwards)
  • Description: A Postgres connection URI. See https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS for more information. Having this set will cause automatic migration to SQLite on versions v0.2.X. On v0.3.X or higher, having this set will cause the application to fail to start.