parent
60906752a3
commit
4039e88f47
@ -0,0 +1,11 @@
|
|||||||
|
FROM alpine
|
||||||
|
|
||||||
|
RUN apk add --no-cache icecast
|
||||||
|
RUN mkdir -p /var/log/icecast2 && \
|
||||||
|
chown icecast /var/log/icecast2
|
||||||
|
|
||||||
|
COPY icecast.xml /etc/icecast2/icecast.xml
|
||||||
|
|
||||||
|
USER icecast
|
||||||
|
|
||||||
|
CMD ["icecast", "-c", "/etc/icecast2/icecast.xml"]
|
||||||
@ -0,0 +1,11 @@
|
|||||||
|
STORAGE_URL = gitea.bjornmossa.net
|
||||||
|
IMAGE_NAME = $(STORAGE_URL)/radioiceberg/icecast
|
||||||
|
|
||||||
|
login:
|
||||||
|
docker login $(STORAGE_URL)
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker build . -t $(IMAGE_NAME)
|
||||||
|
|
||||||
|
push: login
|
||||||
|
docker push $(IMAGE_NAME)
|
||||||
@ -0,0 +1,78 @@
|
|||||||
|
<icecast>
|
||||||
|
<location>Primston</location>
|
||||||
|
<admin>admin@bjornmossa.net</admin>
|
||||||
|
|
||||||
|
<limits>
|
||||||
|
<clients>100</clients>
|
||||||
|
<sources>2</sources>
|
||||||
|
<queue-size>524288</queue-size>
|
||||||
|
<client-timeout>30</client-timeout>
|
||||||
|
<header-timeout>15</header-timeout>
|
||||||
|
<source-timeout>10</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>
|
||||||
|
|
||||||
|
<!-- Uncomment this if you want directory listings -->
|
||||||
|
<!--
|
||||||
|
<directory>
|
||||||
|
<yp-url-timeout>15</yp-url-timeout>
|
||||||
|
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
|
||||||
|
</directory>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<hostname>radioiceberg.net</hostname>
|
||||||
|
|
||||||
|
<listen-socket>
|
||||||
|
<port>8000</port>
|
||||||
|
</listen-socket>
|
||||||
|
|
||||||
|
<http-headers>
|
||||||
|
<header name="Access-Control-Allow-Origin" value="*" />
|
||||||
|
</http-headers>
|
||||||
|
|
||||||
|
<fileserve>1</fileserve>
|
||||||
|
|
||||||
|
<paths>
|
||||||
|
<logdir>/var/log/icecast2</logdir>
|
||||||
|
<webroot>/usr/share/icecast/web</webroot>
|
||||||
|
<adminroot>/usr/share/icecast/admin</adminroot>
|
||||||
|
<alias source="/" destination="/status.xsl"/>
|
||||||
|
</paths>
|
||||||
|
|
||||||
|
<logging>
|
||||||
|
<accesslog>access.log</accesslog>
|
||||||
|
<errorlog>error.log</errorlog>
|
||||||
|
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
|
||||||
|
<logsize>10000</logsize>
|
||||||
|
</logging>
|
||||||
|
|
||||||
|
<security>
|
||||||
|
<chroot>0</chroot>
|
||||||
|
</security>
|
||||||
|
|
||||||
|
<mount type="normal">
|
||||||
|
<mount-name>/radio.ogg</mount-name>
|
||||||
|
<max-listeners>100</max-listeners>
|
||||||
|
<public>1</public>
|
||||||
|
<stream-name>Radio iceberg</stream-name>
|
||||||
|
<stream-description>Independent music from arctic island</stream-description>
|
||||||
|
<stream-url>http://radioiceberg.net</stream-url>
|
||||||
|
<genre>classical</genre>
|
||||||
|
<bitrate>64</bitrate>
|
||||||
|
<type>application/ogg</type>
|
||||||
|
<subtype>vorbis</subtype>
|
||||||
|
<burst-size>65536</burst-size>
|
||||||
|
<mp3-metadata-interval>4096</mp3-metadata-interval>
|
||||||
|
<http-headers>
|
||||||
|
<header name="Access-Control-Allow-Origin" value="*" />
|
||||||
|
</http-headers>
|
||||||
|
</mount>
|
||||||
|
</icecast>
|
||||||
Reference in new issue