real-time monitoring dashboard for nginx rtmp module
first you must installed @nginx-rtmp-module
and you need to install nodejs , npm and git .
-
open nginx config file and add at http -> server section put this code
location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { root html; } location /control { rtmp_control all; # Enable CORS add_header Access-Control-Allow-Origin * always; }
-
move stat.xsl file to main html folder of ningx
-
go to your home folder in your server
git clone https://github.com/fiftysoft/nginx-rtmp-monitoring.git
-
cd to nginx-rtmp-monitoring folder run :
npm install
-
start nodejs server
node server.js
-
open your borwser
- to login go to : http://your-server-ip-address:9991/login?username=admin&password=123123
- then open dashboard go to : http://your-server-ip-address:9991/
- if want to logout go to : http://your-server-ip-address:9991/logout
Note // please change username , session secret and password from config.json
any help ask me at https://www.facebook.com/khdevelopment
docker-compose up
Alternatively build and run the container yourself:
docker build -t nginx-rtmp-monitoring . && docker run -it --rm -p 9991:9991 nginx-rtmp-monitoring