Navidrome: Expose more Navidrome config options through the addon config

This commit is contained in:
Arunan Balasubramaniam
2024-08-20 08:04:42 +01:00
parent 9796e0540e
commit 31d3b04646
2 changed files with 41 additions and 1 deletions

View File

@@ -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,

View File

@@ -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
##############