Init
This commit is contained in:
commit
39073d8f3a
15 changed files with 297 additions and 0 deletions
20
snapcast/data/run.sh
Normal file
20
snapcast/data/run.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue