./configure --add-module=/home/boofsa/nginx-rtmp-module-master --with-debug --conf-path=/home/boofsa/nginx-1.9.6/conf/nginx.conf --with-http_ssl_module make
./nginx
nano nginx.conf
#usernobody;
worker_processes 1;
error_log logs/error.log debug;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 8080;
listen 444 ssl;
server_name localhost;
# sample handlers
#location /on_play {
#if ($arg_pageUrl ~* localhost) {
#return 201;
#}
#return 202;
#}
#location /on_publish {
#return 201;
#}
#location /vod {
#alias /var/myvideos;
#}
#rtmp stat
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
# you can move stat.xsl to a different location
root /usr/build/nginx-rtmp-module;
}
# rtmp control
location /control {
rtmp_control all;
}
error_page 500 502 503 504/50x.html;
location = /50x.html {
root html;
}
}
}
rtmp {
server {
listen 19935;
ping 30s;
notify_method get;
application myapp {
live on;
# sample play/publish handlers
#on_play http://localhost:8080/on_play;
#on_publish http://localhost:8080/on_publish;
# sample recorder
#recorder rec1 {
#record all;
#record_interval 30s;
#record_path /tmp;
#record_unique on;
#}
# sample HLS
#hls on;
#hls_path /tmp/hls;
#hls_sync 100ms;
}
# Video on demand
#application vod {
#play /var/Videos;
#}
# Video on demand over HTTP
#application vod_http {
#play http://localhost:8080/vod/;
#}
}
}