https://github.com/codl/docker-hls-stream
https://github.com/codl/docker-hls-stream
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/codl/docker-hls-stream
- Owner: codl
- Created: 2017-05-14T18:09:00.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-30T22:49:54.000Z (over 6 years ago)
- Last Synced: 2025-02-26T15:07:23.651Z (over 1 year ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 5
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
hey this is a docker image that takes one or more rtmp streams and exposes a barebones web page that plays the stream as HLS
## usage
docker run --rm -p 1935:1935 -p 47151:80 codl/hls-stream
then point your rtmp source at rtmp://yourserver/live and pick a stream key
set up a web server to proxy to 127.0.0.1:47151, for example with nginx:
```
server {
listen 80;
server_name mystream.example.net;
location / {
proxy_pass http://127.0.0.1:47151/
}
}
```
or with caddy:
```
mystream.example.net {
proxy 127.0.0.1:47151
}
```
damn caddy is good
your stream will be viewable at `mystream.example.net/?your_stream_key`
by default `mystream.example.net` will show a stream with a key of `stream`