diff --git a/navidrome/config.json b/navidrome/config.json index e3cc18170..315dee278 100644 --- a/navidrome/config.json +++ b/navidrome/config.json @@ -39,12 +39,22 @@ "cifspassword": "str?", "cifsusername": "str?", "data_folder": "str", + "default_language": "str?", + "image_cache_size": "str?", "keyfile": "str?", + "lastfm_api_key": "str?", + "lastfm_secret": "str?", "localdisks": "str?", "log_level": "str", "music_folder": "str", "networkdisks": "str?", - "ssl": "bool" + "password_encryption_key": "str?", + "scan_schedule": "str?", + "spotify_id": "str?", + "spotify_secret": "str?", + "ssl": "bool", + "transcoding_cache_size": "str?", + "welcome_message": "str?" }, "slug": "navidrome", "udev": true, diff --git a/navidrome/rootfs/etc/cont-init.d/99-run.sh b/navidrome/rootfs/etc/cont-init.d/99-run.sh index e9b92ced7..d1e1a4584 100755 --- a/navidrome/rootfs/etc/cont-init.d/99-run.sh +++ b/navidrome/rootfs/etc/cont-init.d/99-run.sh @@ -14,6 +14,36 @@ if bashio::config.true 'ssl'; then ND_TLSCERT=$(bashio::config 'certfile') ND_TLSKEY=$(bashio::config 'keyfile') fi +if bashio::config.has_value 'default_language'; then + ND_DEFAULTLANGUAGE=$(bashio::config 'default_language') +fi +if bashio::config.has_value 'image_cache_size'; then + ND_IMAGECACHESIZE=$(bashio::config 'image_cache_size') +fi +if bashio::config.has_value 'lastfm_api_key'; then + ND_LASTFM_APIKEY=$(bashio::config 'lastfm_api_key') +fi +if bashio::config.has_value 'lastfm_secret'; then + ND_LASTFM_SECRET=$(bashio::config 'lastfm_secret') +fi +if bashio::config.has_value 'password_encryption_key'; then + ND_PASSWORDENCRYPTIONKEY=$(bashio::config 'password_encryption_key') +fi +if bashio::config.has_value 'scan_schedule'; then + ND_SCANSCHEDULE=$(bashio::config 'scan_schedule') +fi +if bashio::config.has_value 'spotify_id'; then + ND_SPOTIFY_ID=$(bashio::config 'spotify_id') +fi +if bashio::config.has_value 'spotify_secret'; then + ND_SPOTIFY_SECRET=$(bashio::config 'spotify_secret') +fi +if bashio::config.has_value 'transcoding_cache_size'; then + ND_TRANSCODINGCACHESIZE=$(bashio::config 'transcoding_cache_size') +fi +if bashio::config.has_value 'welcome_message'; then + ND_UIWELCOMEMESSAGE=$(bashio::config 'welcome_message') +fi ##############