Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ICECAST_USERNAME=dj_foobar
ICECAST_PASSWORD=xxxxxxx
YOUTUBE_KEY=xxxxxxxxxxxxxx
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ RUN sudo chown -R www:www /usr/local/nginx

EXPOSE 80 443 1935

# do the envsubst here ???
CMD ["/usr/local/nginx/sbin/nginx", "-c", "/home/www/nginx.conf"]
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# viz setup

Here's how to run the docker image.

You'll need a .env file with the proper values set for broadcasting to
icecast/youtube.
```
cp .env.sample .env
```

Then you can pass that file to docker run.
```
docker run -p 1935:1935 -p 8080:8080 -p 16666:4443 -v /home/deploy/viz/fullchain.pem:/etc/letsencrypt/live/viz.streampusher.com/fullchain.pem -v /home/deploy/viz/privkey.pem:/etc/letsencrypt/live/viz.streampusher.com/privkey.pem datafruits/viz:latest
docker run --env-file=.env -p 1935:1935 -p 8080:8080 -p 16666:4443 -v /home/deploy/viz/fullchain.pem:/etc/letsencrypt/live/viz.streampusher.com/fullchain.pem -v /home/deploy/viz/privkey.pem:/etc/letsencrypt/live/viz.streampusher.com/privkey.pem datafruits/viz:latest
```
3 changes: 3 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ rtmp {
meta copy;
hls on;
hls_path /tmp/live;

exec_push ffmpeg -i https://viz.streampusher.com:16666/live/datafruits.m3u8 -vn -c:a libmp3lame -f mp3 icecast://ICECAST_USERNAME:ICECAST_PASSWORD@datafruits.streampusher.com:32978/datafruits;
#push rtmp://a.rtmp.youtube.com/live2/YOUTUBE_KEY;
}
}
}