vod-rtmp/README.md

22 lines
980 B
Markdown
Raw Normal View History

2021-10-10 09:39:39 -04:00
# vod-rtmp
## How to run
2021-10-10 16:35:30 -04:00
1. `apt install docker.io docker-compose`
2021-10-11 20:36:30 -04:00
2. `cp docker-compose.yml.dist docker-compose.yml` and edit the env variables
3. `cd config/frontend && cp config.yml.dist config.yml` and edit the variables
4. `./gen-selfsigned.sh` - generate self signed haproxy cert for bootstraping
5. `docker-compose build`
8. `docker-compose up`
2021-10-10 22:09:05 -04:00
5. `./issue-certificate.sh example.com info@example.com` - issue LE production certificate
2021-10-11 20:36:30 -04:00
8. You can use the following command to rebuild and restart everything:
2021-10-10 22:40:12 -04:00
`docker-compose down ; docker-compose build; docker-compose up -d ; docker-compose logs --follow`
2021-10-10 22:09:05 -04:00
## Setup client
1. Encoder server = `rtmp://example:1935/live/` key = `stream?pass=supersecret`
2021-10-14 17:00:09 -04:00
2. Open a browser and go to `https://example.com` to view your live stream via hls.js
### Powered by
2021-10-10 19:21:38 -04:00
- https://github.com/tiangolo/nginx-rtmp-docker
- https://github.com/zom-bi/zomstream
- https://github.com/Abdisalan/blog-code-examples/tree/master/live-stream-part-3