Skip to content

Commit

Permalink
Allow for setting a Last.fm API key in azuracast.env for dev environm…
Browse files Browse the repository at this point in the history
…ent initialization (AzuraCast#7587)
  • Loading branch information
mdrxy authored Nov 28, 2024
1 parent 761ac81 commit 1954aaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions azuracast.dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ INIT_MUSIC_PATH=/var/azuracast/www/util/fixtures/init_music
INIT_PODCASTS_PATH=/var/azuracast/www/util/fixtures/init_podcasts

INIT_GEOLITE_LICENSE_KEY=
INIT_LASTFM_API_KEY=

# Debugging
MYSQL_SLOW_QUERY_LOG=1
Expand Down
1 change: 1 addition & 0 deletions backend/src/Entity/Fixture/SettingsFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function load(ObjectManager $manager): void
$settings->setBaseUrl((string)(getenv('INIT_BASE_URL') ?: 'http://docker.local'));
$settings->setInstanceName((string)(getenv('INIT_INSTANCE_NAME') ?: 'local test'));
$settings->setGeoliteLicenseKey((string)(getenv('INIT_GEOLITE_LICENSE_KEY') ?: ''));
$settings->setLastFmApiKey((string)(getenv('INIT_LASTFM_API_KEY') ?: ''));

$settings->setSetupCompleteTime(time());
$settings->setPreferBrowserUrl(true);
Expand Down

0 comments on commit 1954aaf

Please sign in to comment.