user xc_vm;
worker_processes  auto;
worker_rlimit_nofile 300000;

events {
    worker_connections  16000;
    use epoll;
    accept_mutex on;
	multi_accept on;
}

rtmp_auto_push on;
rtmp {
    server {
        include port.conf;
        interleave on;
        wait_video on;
        idle_streams off;
        chunk_size 4096;
        notify_method get;
        application live {
            live on;
            record off;
            include live.conf;
        }
    }
}

http {
    allow 127.0.0.1;
    deny all;
    server {
        listen 31210;
        server_name localhost;
        location /control {
            rtmp_control all;
        }
        location /stat {
            rtmp_stat all;
        }
    }
}
