Skip to content

Configuration

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

  • Required: true
  • Description: A list of hosts to allow requests from. E.g. koito.mydomain.com,192.168.0.100:4110.
  • 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.
  • 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: false
  • Description: When set to true, will store the full size downloaded images, which can then be served under /images/full.
  • Default: info
  • Description: One of debug | info | warn | error | fatal
  • 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
  • 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: No CORS policy
  • Description: A comma separated list of origins to allow CORS requests from. The special value * allows CORS requests from all origins.