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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user