nginx-mod-rtmp/test/nginx.conf

90 lines
1.4 KiB
Nginx Configuration File
Raw Normal View History

2012-03-17 23:16:59 +01:00
#user nobody;
worker_processes 1;
error_log logs/error.log debug;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
rtmp {
server {
2012-03-23 15:57:25 +01:00
listen 1935;
2012-03-17 23:16:59 +01:00
chunk_size 128;
2012-03-24 07:26:07 +01:00
publish_time_fix off;
2012-04-20 16:03:00 +02:00
#play_time_fix off;
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-04-28 18:47:58 +02:00
#video_sync on;
2012-04-20 16:03:00 +02:00
2012-04-11 15:23:40 +02:00
record keyframes;
2012-04-15 20:45:27 +02:00
record_path /tmp;
2012-03-23 15:57:25 +01:00
2012-04-11 15:23:40 +02:00
record_max_size 128K;
record_interval 30s;
2012-04-11 16:30:29 +02:00
record_suffix .this.is.flv;
on_publish http://localhost:8080/publish;
on_play http://localhost:8080/play;
on_record_done http://localhost:8080/record_done;
2012-03-23 13:03:32 +01:00
}
2012-03-21 16:08:59 +01:00
2012-05-16 16:04:35 +02:00
application mypull {
live on;
pull myapp mystream localhost;
}
2012-03-17 23:16:59 +01:00
}
}
http {
2012-05-07 13:41:03 +02:00
2012-03-17 23:16:59 +01:00
server {
listen 8080;
location /publish {
return 201;
}
location /play {
return 202;
}
location /record_done {
return 203;
}
2012-05-07 13:41:03 +02:00
location /stat {
rtmp_stat all;
rtmp_stat_stylesheet stat.xsl;
}
location /stat.xsl {
root /home/rarutyunyan/nginx-rtmp-module/;
}
2012-03-17 23:16:59 +01:00
location / {
root /home/rarutyunyan/nginx-rtmp-module/test/www;
}
2012-05-07 13:41:03 +02:00
2012-03-17 23:16:59 +01:00
}
}