21 lines
653 B
Bash
21 lines
653 B
Bash
|
#!/usr/bin/with-contenv bashio
|
||
|
|
||
|
_librespot_username=$(bashio::config 'spotify_username')
|
||
|
export LIBRESPOT_USERNAME="$_librespot_username"
|
||
|
_librespot_password=$(bashio::config 'spotify_password')
|
||
|
export LIBRESPOT_PASSWORD="$_librespot_password"
|
||
|
|
||
|
bashio::var.json \
|
||
|
interface "$(bashio::addon.ip_address)" \
|
||
|
entry "$(bashio::addon.ingress_entry)" \
|
||
|
| tempio \
|
||
|
-template "/templates/nginx-site.gtpl" \
|
||
|
-out "/etc/nginx/http.d/default.conf"
|
||
|
|
||
|
bashio::var.json radios "$(bashio::config 'radios' | jq -cMs .)" \
|
||
|
| tempio \
|
||
|
-template "/templates/Radios.m3u8.gtpl" \
|
||
|
-out "/var/lib/mopidy/playlists/Radios.m3u8"
|
||
|
|
||
|
supervisord -c /etc/supervisord.conf
|