This commit is contained in:
Tobias Reisinger 2023-08-08 19:29:03 +02:00
commit 39073d8f3a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
15 changed files with 297 additions and 0 deletions

20
snapcast/data/run.sh Normal file
View file

@ -0,0 +1,20 @@
#!/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