WIP
This commit is contained in:
@@ -30,7 +30,6 @@ RUN \
|
|||||||
py-gobject \
|
py-gobject \
|
||||||
mailcap \
|
mailcap \
|
||||||
su-exec \
|
su-exec \
|
||||||
icecast \
|
|
||||||
gstreamer \
|
gstreamer \
|
||||||
gst-plugins-base \
|
gst-plugins-base \
|
||||||
gst-plugins-good \
|
gst-plugins-good \
|
||||||
|
|||||||
@@ -1,46 +0,0 @@
|
|||||||
<icecast>
|
|
||||||
<limits>
|
|
||||||
<clients>1000</clients>
|
|
||||||
<sources>42</sources>
|
|
||||||
<threadpool>5</threadpool>
|
|
||||||
<queue-size>524288</queue-size>
|
|
||||||
<client-timeout>30</client-timeout>
|
|
||||||
<header-timeout>15</header-timeout>
|
|
||||||
<source-timeout>10</source-timeout>
|
|
||||||
|
|
||||||
<burst-on-connect>0</burst-on-connect>
|
|
||||||
<burst-size>65535</burst-size>
|
|
||||||
</limits>
|
|
||||||
|
|
||||||
<authentication>
|
|
||||||
<source-password>3ds6ksvNGm6WeccXrd</source-password>
|
|
||||||
<relay-password>3ds6ksvNGm6WeccXrd</relay-password>
|
|
||||||
|
|
||||||
<admin-user>admin</admin-user>
|
|
||||||
<admin-password>3ds6ksvNGm6WeccXrd</admin-password>
|
|
||||||
</authentication>
|
|
||||||
|
|
||||||
<hostname>icecast.local</hostname>
|
|
||||||
<location>unknown</location>
|
|
||||||
<admin>noreply@icecast.local</admin>
|
|
||||||
<fileserve>1</fileserve>
|
|
||||||
|
|
||||||
<listen-socket>
|
|
||||||
<port>8000</port>
|
|
||||||
<bind-address>0.0.0.0</bind-address>
|
|
||||||
</listen-socket>
|
|
||||||
|
|
||||||
<mount>
|
|
||||||
<mount-name>/mopidy</mount-name>
|
|
||||||
<fallback-mount>/silence.mp3</fallback-mount>
|
|
||||||
<fallback-override>1</fallback-override>
|
|
||||||
</mount>
|
|
||||||
|
|
||||||
<paths>
|
|
||||||
<basedir>/usr/share/icecast</basedir>
|
|
||||||
<logdir>/data/logs/icecast</logdir>
|
|
||||||
<webroot>/usr/share/icecast/web</webroot>
|
|
||||||
<adminroot>/usr/share/icecast/admin</adminroot>
|
|
||||||
<alias source="/" dest="/status.xsl"/>
|
|
||||||
</paths>
|
|
||||||
</icecast>
|
|
||||||
@@ -3,6 +3,9 @@ cache_dir = /data/.cache
|
|||||||
config_dir = /data/.config
|
config_dir = /data/.config
|
||||||
data_dir = /data
|
data_dir = /data
|
||||||
|
|
||||||
|
[audio]
|
||||||
|
output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! filesink location=/tmp/snapfifo
|
||||||
|
|
||||||
[file]
|
[file]
|
||||||
media_dirs = /music|Music
|
media_dirs = /music|Music
|
||||||
|
|
||||||
@@ -20,8 +23,8 @@ hostname = 0.0.0.0
|
|||||||
hostname = 0.0.0.0
|
hostname = 0.0.0.0
|
||||||
|
|
||||||
[iris]
|
[iris]
|
||||||
|
snapcast_enabled = true
|
||||||
|
snapcast_host = snapserver
|
||||||
|
snapcast_port = 1705
|
||||||
country = US
|
country = US
|
||||||
locale = en_US
|
locale = en_US
|
||||||
|
|
||||||
[audio]
|
|
||||||
output = lamemp3enc bitrate=320 ! shout2send async=false mount=mopidy ip=127.0.0.1 port=8000 password=3ds6ksvNGm6WeccXrd
|
|
||||||
|
|||||||
@@ -7,16 +7,6 @@ if [ ! -r /data/.config/mopidy.conf ]; then
|
|||||||
cp /defaults/mopidy.conf /data/.config
|
cp /defaults/mopidy.conf /data/.config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -r /data/.config/icecast.xml ]; then
|
|
||||||
mkdir -p /data/.config
|
|
||||||
cp /defaults/icecast.xml /data/.config
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -r /data/logs ]; then
|
|
||||||
mkdir -p /data/logs/mopidy
|
|
||||||
mkdir -p /data/logs/icecast
|
|
||||||
fi
|
|
||||||
|
|
||||||
chown -R mopidy:mopidy /data
|
chown -R mopidy:mopidy /data
|
||||||
|
|
||||||
su-exec mopidy mopidy --config /data/.config/mopidy.conf local scan
|
su-exec mopidy mopidy --config /data/.config/mopidy.conf local scan
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
trap "kill $PID" HUP INT TERM
|
trap "kill $PID" HUP INT TERM
|
||||||
su-exec mopidy icecast -c /data/.config/icecast.xml -b &
|
|
||||||
su-exec mopidy mopidy --config /data/.config/mopidy.conf "${@}" &
|
su-exec mopidy mopidy --config /data/.config/mopidy.conf "${@}" &
|
||||||
PID=$!
|
PID=$!
|
||||||
wait $PID
|
wait $PID
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user