2019-06-30 20:32:16 +03:00
|
|
|
# Do not change settings in this file
|
|
|
|
# Instead, simply write an entry with the same name in your own settings.ini file
|
|
|
|
# Category headers in [brackets] are only for organization and not necessary
|
|
|
|
|
2020-12-25 06:41:33 +03:00
|
|
|
[Directories]
|
|
|
|
# DATA_DIR determines the base directory. It should be specified as environment
|
|
|
|
# variable because this file itself is loaded from it.
|
|
|
|
# Configuration is always in this base directory. Other data defaults to be here
|
|
|
|
# too, but can be customized with the options below.
|
|
|
|
DATA_DIR_STATE = None # This is /var/lib/maloja per XDG
|
|
|
|
DATA_DIR_LOGS = None # this is /var/log/maloja per XDG
|
|
|
|
DATA_DIR_CACHE = None # this is /var/cache/maloja per XDG
|
|
|
|
|
2019-03-28 17:06:14 +03:00
|
|
|
[HTTP]
|
|
|
|
|
|
|
|
WEB_PORT = 42010
|
2019-06-30 20:32:16 +03:00
|
|
|
HOST = "::" # You most likely want either :: for IPv6 or 0.0.0.0 for IPv4 here
|
2019-03-28 17:06:14 +03:00
|
|
|
|
2020-08-17 20:04:51 +03:00
|
|
|
[Login]
|
|
|
|
|
|
|
|
DEFAULT_PASSWORD = none
|
|
|
|
FORCE_PASSWORD = none
|
|
|
|
# these are only meant for Docker containers
|
|
|
|
# on first start, set the environment variable MALOJA_DEFAULT_PASSWORD
|
|
|
|
# if you forgot and already generated a random password, you can overwrite it with MALOJA_FORCE_PASSWORD
|
|
|
|
|
2019-03-28 17:06:14 +03:00
|
|
|
[Third Party Services]
|
|
|
|
|
2020-07-28 21:12:50 +03:00
|
|
|
# order in which to use the metadata providers
|
|
|
|
# keep in mind that musicbrainz is rate-limited and should probably not be used first
|
|
|
|
METADATA_PROVIDERS = [lastfm,spotify,musicbrainz]
|
2020-07-25 20:34:41 +03:00
|
|
|
# whether to proxy scrobble to other services
|
|
|
|
SCROBBLE_LASTFM = false
|
|
|
|
|
2019-05-10 14:15:40 +03:00
|
|
|
LASTFM_API_KEY = "ASK" # 'ASK' signifies that the user has not yet indicated to not use any key at all.
|
2019-06-24 16:43:38 +03:00
|
|
|
LASTFM_API_SECRET = "ASK"
|
2019-05-05 12:56:09 +03:00
|
|
|
FANARTTV_API_KEY = "ASK"
|
2019-05-10 14:15:40 +03:00
|
|
|
SPOTIFY_API_ID = "ASK"
|
|
|
|
SPOTIFY_API_SECRET = "ASK"
|
2020-07-25 20:34:41 +03:00
|
|
|
|
2019-03-28 19:40:22 +03:00
|
|
|
CACHE_EXPIRE_NEGATIVE = 30 # after how many days negative results should be tried again
|
2019-03-29 20:40:55 +03:00
|
|
|
CACHE_EXPIRE_POSITIVE = 300 # after how many days positive results should be refreshed
|
2019-12-12 23:24:13 +03:00
|
|
|
THUMBOR_SERVER = None
|
|
|
|
THUMBOR_SECRET = ""
|
2019-04-03 17:43:09 +03:00
|
|
|
|
2020-09-30 22:22:47 +03:00
|
|
|
# Can be 'YouTube', 'YouTube Music', 'Spotify', 'Tidal', 'SoundCloud', 'Deezer', 'Amazon Music', 'Apple', 'Beatport', 'Bandcamp', 'Qobuz'
|
2020-09-25 00:31:55 +03:00
|
|
|
# Set to None to disable
|
2019-08-22 23:17:04 +03:00
|
|
|
TRACK_SEARCH_PROVIDER = None
|
2019-08-21 23:19:01 +03:00
|
|
|
|
2019-04-15 13:26:12 +03:00
|
|
|
[Database]
|
|
|
|
|
2020-05-29 05:46:53 +03:00
|
|
|
USE_DB_CACHE = yes
|
|
|
|
CACHE_DATABASE_SHORT = true
|
|
|
|
CACHE_DATABASE_PERM = true #more permanent cache for old timeranges
|
|
|
|
DB_CACHE_ENTRIES = 10000 #experiment with this depending on your RAM
|
2020-05-29 18:33:42 +03:00
|
|
|
DB_MAX_MEMORY = 75 # percentage of RAM utilization (whole container, not just maloja) that should trigger a flush
|
2019-11-19 22:06:39 +03:00
|
|
|
INVALID_ARTISTS = ["[Unknown Artist]","Unknown Artist","Spotify"]
|
2020-05-13 23:57:55 +03:00
|
|
|
REMOVE_FROM_TITLE = ["(Original Mix)","(Radio Edit)","(Album Version)","(Explicit Version)","(Bonus Track)"]
|
2019-12-15 17:43:56 +03:00
|
|
|
USE_PARSE_PLUGINS = no
|
2019-04-15 13:26:12 +03:00
|
|
|
|
2019-04-03 17:43:09 +03:00
|
|
|
[Local Images]
|
|
|
|
|
2019-04-07 14:22:33 +03:00
|
|
|
USE_LOCAL_IMAGES = true
|
2019-04-03 17:43:09 +03:00
|
|
|
LOCAL_IMAGE_ROTATE = 3600 # when multiple images are present locally, how many seconds we wait between rotation
|
2019-04-09 12:48:12 +03:00
|
|
|
|
|
|
|
[Web Interface]
|
|
|
|
|
|
|
|
# what range is shown per default for the tile view on the start page
|
|
|
|
# can be week, month, year, alltime
|
|
|
|
DEFAULT_RANGE_CHARTS_ARTISTS = year
|
|
|
|
DEFAULT_RANGE_CHARTS_TRACKS = year
|
2019-04-09 12:56:09 +03:00
|
|
|
# same for pulse view
|
2019-06-17 14:02:06 +03:00
|
|
|
# can be day, week, month, year
|
|
|
|
DEFAULT_STEP_PULSE = month
|
2019-05-10 14:35:06 +03:00
|
|
|
|
2019-09-20 19:53:00 +03:00
|
|
|
# display top tiles on artist and track chart pages
|
2019-09-04 08:58:28 +03:00
|
|
|
CHARTS_DISPLAY_TILES = false
|
|
|
|
|
2020-10-05 04:15:06 +03:00
|
|
|
# this does not actually block any requests, it's just an interface feature t
|
|
|
|
# prevent visitors from mindlessly clicking on those options and hogging your cpu
|
|
|
|
DISCOURAGE_CPU_HEAVY_STATS = false
|
|
|
|
|
2020-12-12 19:23:29 +03:00
|
|
|
# Offset in hours to UTC
|
|
|
|
TIMEZONE = 0
|
2020-12-01 20:59:39 +03:00
|
|
|
|
2019-06-13 12:37:42 +03:00
|
|
|
[Fluff]
|
|
|
|
|
|
|
|
# how many scrobbles a track needs to aquire this status
|
|
|
|
SCROBBLES_GOLD = 250
|
|
|
|
SCROBBLES_PLATINUM = 500
|
|
|
|
SCROBBLES_DIAMOND = 1000
|
2019-06-17 17:57:20 +03:00
|
|
|
# name for comparisons
|
2020-06-05 14:16:02 +03:00
|
|
|
NAME = None
|
2019-06-13 12:37:42 +03:00
|
|
|
|
2019-05-10 14:35:06 +03:00
|
|
|
[Misc]
|
|
|
|
|
2020-02-28 19:26:26 +03:00
|
|
|
SKIP_SETUP = no
|
2020-06-13 18:34:30 +03:00
|
|
|
LOGGING = true
|
2020-09-01 01:35:14 +03:00
|
|
|
DEV_MODE = false
|
2020-12-13 05:38:46 +03:00
|
|
|
|
|
|
|
# set this to true if your console output will be processed and should never change existing lines
|
|
|
|
CLEAN_OUTPUT = false
|