<commit_before># fstv-monitoring
real-time monitoring dashboard for nginx rtmp module

![fstv monitoring](https://cloud.githubusercontent.com/assets/16119345/15388844/9f66917e-1dbc-11e6-9726-2a4912d74352.png)

# 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 run :

	npm install
	
* start nodejs server

	node server.js
	
* open your borwser http://ip:9991


any help ask me at https://www.facebook.com/khdevelopment


# Docker

        docker-compose up

Alternatively build and run the container yourself:<commit_msg>fix format error<commit_after># fstv-monitoring
real-time monitoring dashboard for nginx rtmp module

![fstv monitoring](https://cloud.githubusercontent.com/assets/16119345/15388844/9f66917e-1dbc-11e6-9726-2a4912d74352.png)

# 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 run :

	npm install

* start nodejs server

	node server.js

* open your borwser http://ip:9991


any help ask me at https://www.facebook.com/khdevelopment


# Docker

        docker-compose up

Alternatively build and run the container yourself:
{'fraction_non_alphanumeric': 0.07568508046976946, 'fraction_numerical': 0.03827751196172249, 'mean_word_length': 2.7520391517128875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4766228', 'n_tokens_mistral': 821, 'n_tokens_neox': 709, 'n_words': 225}