Potential Icecast support?
This commit is contained in:
@@ -27,6 +27,7 @@ RUN \
|
|||||||
py2-crypto \
|
py2-crypto \
|
||||||
py2-gst \
|
py2-gst \
|
||||||
py-gobject \
|
py-gobject \
|
||||||
|
mailcap \
|
||||||
su-exec \
|
su-exec \
|
||||||
icecast \
|
icecast \
|
||||||
gstreamer \
|
gstreamer \
|
||||||
|
|||||||
59
root/defaults/icecast.xml
Normal file
59
root/defaults/icecast.xml
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
<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>localhost</hostname>
|
||||||
|
<location>Central, USA</location>
|
||||||
|
<admin>noreply@music.log1x.cloud</admin>
|
||||||
|
|
||||||
|
<listen-socket>
|
||||||
|
<port>8000</port>
|
||||||
|
<bind-address>127.0.0.1</bind-address>
|
||||||
|
</listen-socket>
|
||||||
|
|
||||||
|
<mount>
|
||||||
|
<mount-name>/mopidy</mount-name>
|
||||||
|
<fallback-mount>/silence.mp3</fallback-mount>
|
||||||
|
<fallback-override>1</fallback-override>
|
||||||
|
</mount>
|
||||||
|
|
||||||
|
<fileserve>1</fileserve>
|
||||||
|
|
||||||
|
<paths>
|
||||||
|
<basedir>/data/.config/icecast2</basedir>
|
||||||
|
<logdir>/data/logs/icecast2</logdir>
|
||||||
|
<webroot>/data/.config/icecast2/web</webroot>
|
||||||
|
<adminroot>/data/.config/icecast2/admin</adminroot>
|
||||||
|
|
||||||
|
<alias source="/" dest="/status.xsl"/>
|
||||||
|
</paths>
|
||||||
|
|
||||||
|
<logging>
|
||||||
|
<accesslog>access.log</accesslog>
|
||||||
|
<errorlog>error.log</errorlog>
|
||||||
|
<loglevel>3</loglevel>
|
||||||
|
<logsize>10000</logsize>
|
||||||
|
</logging>
|
||||||
|
|
||||||
|
<security>
|
||||||
|
<chroot>0</chroot>
|
||||||
|
</security>
|
||||||
|
</icecast>
|
||||||
@@ -22,3 +22,6 @@ hostname = 0.0.0.0
|
|||||||
[iris]
|
[iris]
|
||||||
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
|
||||||
|
|||||||
BIN
root/defaults/silence.mp3
Normal file
BIN
root/defaults/silence.mp3
Normal file
Binary file not shown.
@@ -3,7 +3,20 @@ if [ ! -r /data/.config/mopidy.conf ]; then
|
|||||||
mkdir -p /data/.config && cp /defaults/mopidy.conf /data/.config && chown -R mopidy:mopidy /data
|
mkdir -p /data/.config && cp /defaults/mopidy.conf /data/.config && chown -R mopidy:mopidy /data
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -r /data/.config/icecast.xml ]; then
|
||||||
|
mkdir -p /data/.config && cp /defaults/icecast.xml /data/.config && chown -R mopidy:mopidy /data
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -r /data/.config/icecast2/web/silence.mp3 ]; then
|
||||||
|
mkdir -p /data/.config/icecast2/web && cp /defaults/silence.mp3 /data/.config/icecast2/web && chown -R mopidy:mopidy /data
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -r /data/logs ]; then
|
||||||
|
mkdir -p /data/logs/mopidy /data/logs/icecast2 && chown -R mopidy:mopidy /data
|
||||||
|
fi
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user