Bump
This commit is contained in:
@@ -1,25 +1,34 @@
|
||||
<icecast>
|
||||
<hostname>icecast.local</hostname>
|
||||
<location>local</location>
|
||||
<hostname>localhost</hostname>
|
||||
<location>docker</location>
|
||||
<admin>noreply@icecast.local</admin>
|
||||
<fileserve>1</fileserve>
|
||||
|
||||
<limits>
|
||||
<burst-on-connect>0</burst-on-connect>
|
||||
<clients>5</clients>
|
||||
<sources>2</sources>
|
||||
<queue-size>1280000</queue-size>
|
||||
<client-timeout>30</client-timeout>
|
||||
<header-timeout>15</header-timeout>
|
||||
<source-timeout>1</source-timeout>
|
||||
<burst-on-connect>1</burst-on-connect>
|
||||
<burst-size>65535</burst-size>
|
||||
</limits>
|
||||
|
||||
<authentication>
|
||||
<source-password>hackme</source-password>
|
||||
<relay-password>hackme</relay-password>
|
||||
<admin-user>admin</admin-user>
|
||||
<admin-password>hackme</admin-password>
|
||||
</authentication>
|
||||
|
||||
<listen-socket>
|
||||
<port>8000</port>
|
||||
<bind-address>0.0.0.0</bind-address>
|
||||
</listen-socket>
|
||||
|
||||
<http-headers>
|
||||
<header name="Access-Control-Allow-Origin" value="*" />
|
||||
</http-headers>
|
||||
|
||||
<mount>
|
||||
<mount-name>/mopidy</mount-name>
|
||||
<fallback-mount>/silence.mp3</fallback-mount>
|
||||
@@ -27,11 +36,12 @@
|
||||
</mount>
|
||||
|
||||
<paths>
|
||||
<basedir>/data/icecast</basedir>
|
||||
<logdir>/data/icecast/logs</logdir>
|
||||
<webroot>/data/icecast/web</webroot>
|
||||
<adminroot>/data/icecast/admin</adminroot>
|
||||
|
||||
<alias source="/" destination="/status.xsl"/>
|
||||
<alias source="/" destination="/mopidy"/>
|
||||
</paths>
|
||||
|
||||
<logging>
|
||||
|
||||
@@ -2,12 +2,9 @@
|
||||
data_dir = /data
|
||||
config_dir = /data/.config
|
||||
cache_dir = /data/.cache
|
||||
max_tracklist_length = 10000
|
||||
|
||||
[audio]
|
||||
mixer = software
|
||||
mixer_volume = 100
|
||||
output = lamemp3enc bitrate=320 ! shout2send mount=mopidy ip=0.0.0.0 port=8000 password=hackme
|
||||
output = lamemp3enc bitrate=320 ! shout2send async=false sync=true mount=mopidy
|
||||
|
||||
[file]
|
||||
media_dirs = /music|Music
|
||||
@@ -18,17 +15,32 @@ excluded_file_extensions =
|
||||
.gif
|
||||
.bmp
|
||||
.m4a
|
||||
.itdb
|
||||
.itl
|
||||
|
||||
[m3u]
|
||||
enabled = false
|
||||
|
||||
[stream]
|
||||
enabled = false
|
||||
|
||||
[local]
|
||||
library = images
|
||||
media_dir = /music
|
||||
scan_flush_threshold = 100
|
||||
excluded_file_extensions =
|
||||
.jpg
|
||||
.jpeg
|
||||
.png
|
||||
.gif
|
||||
.bmp
|
||||
.m4a
|
||||
.itdb
|
||||
.itl
|
||||
|
||||
[local-images]
|
||||
library = sqlite
|
||||
image_dir = /data/.images
|
||||
|
||||
[http]
|
||||
hostname = 0.0.0.0
|
||||
@@ -37,9 +49,6 @@ hostname = 0.0.0.0
|
||||
hostname = 0.0.0.0
|
||||
|
||||
[iris]
|
||||
snapcast_enabled = true
|
||||
snapcast_host = 0.0.0.0
|
||||
snapcast_port = 1705
|
||||
country = US
|
||||
locale = en_US
|
||||
|
||||
|
||||
@@ -2,29 +2,17 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
if [ ! -r /data/.config ]; then
|
||||
mkdir -p /data/.config
|
||||
fi
|
||||
[ ! -r /data/.config ] && mkdir -p /data/.config
|
||||
[ ! -r /data/.images ] && mkdir -p /data/.images
|
||||
[ ! -r /data/.config/mopidy.conf ] && cp /defaults/mopidy.conf /data/.config
|
||||
[ ! -r /data/.config/icecast.xml ] && cp /defaults/icecast.xml /data/.config
|
||||
|
||||
if [ ! -r /data/.config/mopidy.conf ]; then
|
||||
cp /defaults/mopidy.conf /data/.config
|
||||
fi
|
||||
|
||||
if [ ! -r /data/.config/icecast.xml ]; then
|
||||
cp /defaults/icecast.xml /data/.config
|
||||
fi
|
||||
|
||||
if [ ! -r /data/icecast/web ] || [ ! -r /data/icecast/admin ]; then
|
||||
if [ ! -r /data/icecast/web ] || [ ! -r /data/icecast/admin ] || [ ! -r /data/icecast/logs ]; then
|
||||
mkdir -p /data/icecast/web /data/icecast/admin /data/icecast/logs
|
||||
cp -r /usr/share/icecast /data/icecast
|
||||
cp /defaults/silence.mp3 /data/icecast/web/silence.mp3
|
||||
fi
|
||||
|
||||
if [ ! -r /tmp/snapfifo ]; then
|
||||
touch /tmp/snapfifo
|
||||
fi
|
||||
|
||||
chown -R mopidy:mopidy /data /tmp/snapfifo
|
||||
|
||||
chown -R mopidy:mopidy /data
|
||||
su-exec mopidy mopidy --config /data/.config/mopidy.conf local scan
|
||||
exec "${@}"
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
trap "kill $PID" HUP INT TERM
|
||||
su-exec mopidy snapserver -d -s pipe:///tmp/snapfifo?name=Mopidy&sampleformat=48000:16:2 &
|
||||
su-exec mopidy icecast -c /data/.config/icecast.xml -b &
|
||||
su-exec mopidy mopidy --config /data/.config/mopidy.conf "${@}" &
|
||||
PID=$!
|
||||
|
||||
Reference in New Issue
Block a user