/nginx-rtmp-monitoring

Primary LanguageJavaScriptMIT LicenseMIT

fstv-monitoring

real-time monitoring dashboard for nginx rtmp module

fstv monitoring

How to install

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

  • Edit config.json file with the path of your RTMP server

  • run :

    npm install

  • start nodejs server

    node server.js

  • open http://your-server-ip-address:9991 on your browser Default credentials for login: Username: admin Password: 123123

  • you can use logout button for sign out

Note // please change username , session secret and password from config.json

how to get help

leave comment on https://fiftysoft.blogspot.com/2017/10/how-to-install-nginx-rtmp-monitoring.html or open issue at github

Docker

    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