nginx-mod-rtmp/test/nginx.conf

82 lines
1.2 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;
max_buf 1000000;
2012-03-18 14:09:19 +01:00
2012-03-24 07:26:07 +01:00
publish_time_fix off;
2012-03-23 13:03:32 +01:00
application helo {
live on;
2012-03-21 16:08:59 +01: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_max_frames 4;
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 15:57:25 +01:00
2012-03-23 13:03:32 +01:00
#wait_key_frame on;
# publish only from localhost
2012-03-24 07:26:07 +01:00
#allow publish 127.0.0.1;
2012-03-21 16:08:59 +01:00
2012-03-24 07:26:07 +01:00
#deny publish all;
2012-03-23 13:03:32 +01:00
}
2012-03-21 16:08:59 +01:00
2012-03-17 23:16:59 +01:00
}
}
http {
server {
listen 8080;
location /publish {
return 201;
}
location /play {
return 202;
}
location /record_done {
return 203;
}
2012-03-17 23:16:59 +01:00
location / {
root /home/rarutyunyan/nginx-rtmp-module/test/www;
}
2012-03-17 23:16:59 +01:00
}
}