mirror of
https://github.com/cupcakearmy/livestream.git
synced 2024-12-21 15:46:33 +00:00
Audio stream
This commit is contained in:
parent
4b76d40354
commit
743290d462
17
audio/README.md
Normal file
17
audio/README.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Audio Livestream
|
||||||
|
|
||||||
|
Docker image for icecast2
|
||||||
|
|
||||||
|
## Quickstart 💥
|
||||||
|
|
||||||
|
```
|
||||||
|
docker-compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
## Setup 🏗
|
||||||
|
|
||||||
|
Change the passwords in the `icecast.xml`
|
||||||
|
|
||||||
|
## Usage 👾
|
||||||
|
|
||||||
|
Upload to the server with some broadcasting software: [Like b.u.t.t.](https://danielnoethen.de/)
|
10
audio/docker-compose.yml
Normal file
10
audio/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
build: ./
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
- 8000:8000
|
||||||
|
volumes:
|
||||||
|
- ./icecast.xml:/usr/share/icecast/icecast.xml
|
9
audio/dockerfile
Normal file
9
audio/dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM alpine:3.7
|
||||||
|
|
||||||
|
RUN apk add --no-cache icecast
|
||||||
|
|
||||||
|
WORKDIR /usr/share/icecast
|
||||||
|
RUN mkdir ./logs
|
||||||
|
RUN chown -R icecast: .
|
||||||
|
|
||||||
|
CMD [ "icecast", "-c","icecast.xml" ]
|
53
audio/icecast.xml
Normal file
53
audio/icecast.xml
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
<icecast>
|
||||||
|
<hostname>0.0.0.0</hostname>
|
||||||
|
<location>earth</location>
|
||||||
|
|
||||||
|
<listen-socket>
|
||||||
|
<port>80</port>
|
||||||
|
</listen-socket>
|
||||||
|
|
||||||
|
<authentication>
|
||||||
|
<source-password>hackme</source-password>
|
||||||
|
<admin-user>admin</admin-user>
|
||||||
|
<admin-password>hackme</admin-password>
|
||||||
|
</authentication>
|
||||||
|
|
||||||
|
<http-headers>
|
||||||
|
<header name="Access-Control-Allow-Origin" value="*" />
|
||||||
|
</http-headers>
|
||||||
|
|
||||||
|
<limits>
|
||||||
|
<clients>100</clients>
|
||||||
|
<sources>2</sources>
|
||||||
|
<queue-size>102400</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>65536</burst-size>
|
||||||
|
</limits>
|
||||||
|
|
||||||
|
<paths>
|
||||||
|
<basedir>/usr/share/icecast</basedir>
|
||||||
|
<logdir>./logs</logdir>
|
||||||
|
<!-- <pidfile>./icecast.pid</pidfile> -->
|
||||||
|
<webroot>./web</webroot>
|
||||||
|
<adminroot>./admin</adminroot>
|
||||||
|
</paths>
|
||||||
|
|
||||||
|
<security>
|
||||||
|
<chroot>0</chroot>
|
||||||
|
<changeowner>
|
||||||
|
<user>icecast</user>
|
||||||
|
<group>icecast</group>
|
||||||
|
</changeowner>
|
||||||
|
</security>
|
||||||
|
|
||||||
|
<mount type="normal">
|
||||||
|
<mount-name>/live</mount-name>
|
||||||
|
<max-listeners>796</max-listeners>
|
||||||
|
<stream-name>My audio stream</stream-name>
|
||||||
|
<stream-description>My audio description</stream-description>
|
||||||
|
</mount>
|
||||||
|
|
||||||
|
</icecast>
|
Loading…
Reference in New Issue
Block a user