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-21 16:08:59 +01:00
|
|
|
listen 1935;
|
2012-03-17 23:16:59 +01:00
|
|
|
|
2012-03-21 22:00:52 +01:00
|
|
|
#wait_key_frame on;
|
2012-03-19 16:55:46 +01:00
|
|
|
|
|
|
|
chunk_size 128;
|
|
|
|
|
|
|
|
max_buf 1000000;
|
2012-03-18 14:09:19 +01:00
|
|
|
|
2012-03-21 22:00:52 +01:00
|
|
|
#timestamp_fix on;
|
|
|
|
|
|
|
|
#allow play all;
|
2012-03-21 16:08:59 +01:00
|
|
|
|
|
|
|
allow publish 127.0.0.1;
|
|
|
|
|
|
|
|
deny publish all;
|
|
|
|
|
2012-03-17 23:16:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
|
|
|
# testing framework
|
|
|
|
# based on flowplayer (http://flowplayer.org)
|
|
|
|
|
|
|
|
listen 8080;
|
|
|
|
|
|
|
|
location / {
|
2012-03-21 16:08:59 +01:00
|
|
|
# deny 192.168.33.33;
|
2012-03-17 23:16:59 +01:00
|
|
|
root /home/rarutyunyan/nginx-rtmp-module/test/www;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|