Docker image for a HTTP FLV server running on Nginx
- NGINX Version 1.21.1
- nginx-http-flv-module Version 1.2.9
This image exposes port 1935 for RTMP Steams and has 1 default channel named "live".
"live" (your stream name) with your stream key is also accessable via HTTP-FLV on port 8080, so you can use flv.js to load http://<your server ip>:8080/flv?app=live&stream=<your stream key>
to watch the stream.
It also exposes 8080 so you can access http://<your server ip>:8080/stat
to see the streaming statistics.
The configuration file is in /opt/nginx/conf/, more configuration details can be found at nginx-http-flv-module.
To run the container and bind the port 1935 to the host machine; run the following:
docker run -d -p 1935:1935 -p 8080:8080 lewangdev/nginx-http-flv
Start streaming, the server ip is 192.168.56.20
and the stream key is 999
Open the stream via flv.js