Refactor last_fm configuration

Move all configuration outside of the LastFm module, so that it's not
polluted with references to the parent music_library application.
This commit is contained in:
Claudio Ortolina
2024-11-06 12:08:06 +00:00
parent c64a8f7287
commit 18ae8b7866
11 changed files with 33 additions and 24 deletions
+3
View File
@@ -62,6 +62,9 @@ config :music_library, MusicLibraryWeb.Endpoint,
# Enable dev routes for dashboard and mailbox
config :music_library, dev_routes: true
config :music_library, LastFm,
refresh_interval: System.convert_time_unit(500, :second, :millisecond)
# Do not include metadata nor timestamps in development logs
config :logger, :console, format: "[$level] $message\n"