nginx-mod-rtmp/test/nginx.conf

67 lines
1.2 KiB
Nginx Configuration File
Raw Normal View History

2012-03-17 23:16:59 +01:00
worker_processes 1;
error_log logs/error.log debug;
events {
worker_connections 1024;
}
rtmp {
server {
2012-03-23 15:57:25 +01:00
listen 1935;
2012-03-17 23:16:59 +01:00
2012-04-17 13:12:45 +02:00
application myapp {
2012-03-23 13:03:32 +01:00
live on;
2012-03-21 16:08:59 +01:00
2012-12-27 19:15:33 +01:00
#record keyframes;
#record_path /tmp;
#record_max_size 128K;
#record_interval 30s;
#record_suffix .this.is.flv;
2012-05-16 16:04:35 +02:00
2012-12-27 19:15:33 +01:00
#on_publish http://localhost:8080/publish;
#on_play http://localhost:8080/play;
#on_record_done http://localhost:8080/record_done;
}
2012-03-17 23:16:59 +01:00
}
}
http {
server {
listen 8080;
2012-05-07 13:41:03 +02:00
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
2012-12-27 19:15:33 +01:00
root /path/to/nginx-rtmp-module/;
}
location /control {
rtmp_control all;
2012-05-07 13:41:03 +02:00
}
2012-12-27 19:15:33 +01:00
#location /publish {
# return 201;
#}
#location /play {
# return 202;
#}
#location /record_done {
# return 203;
#}
location /rtmp-publisher {
2012-12-27 19:15:33 +01:00
root /path/to/nginx-rtmp-module/test;
}
2012-03-17 23:16:59 +01:00
location / {
2012-12-27 19:15:33 +01:00
root /path/to/nginx-rtmp-module/test/www;
2012-03-17 23:16:59 +01:00
}
}
}