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
+7
View File
@@ -24,6 +24,13 @@ config :music_library, MusicLibraryWeb.Endpoint,
pubsub_server: MusicLibrary.PubSub,
live_view: [signing_salt: "g/qw4SNo"]
config :music_library, LastFm,
# to avoid runtime errors, set the user to a valid Last.fm username
user: "username",
api: LastFm.APIImpl,
refresh_interval: System.convert_time_unit(60, :second, :millisecond),
api_key: "change me"
# Configure esbuild (the version is required)
config :esbuild,
version: "0.17.11",