Skip to content

Instantly share code, notes, and snippets.

@davibe
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davibe/4fbfe4cf1601a95a5bf1 to your computer and use it in GitHub Desktop.
Save davibe/4fbfe4cf1601a95a5bf1 to your computer and use it in GitHub Desktop.
nginx-rtmp on ec2 conf
env PATH;
worker_processes 0;
daemon off;
master_process off;
rtmp_auto_push off;
events {
worker_connections 2048;
}
rtmp {
access_log /static/logs/nginx_rtmp.log;
max_streams 32;
server {
listen 1935;
chunk_size 4096;
buflen 10s;
application live_test_no_rec {
live on;
record off;
drop_idle_publisher 5s;
publish_notify on;
}
application live_test_rec {
live on;
drop_idle_publisher 5s;
publish_notify on;
recorder live_test_recorder {
record all;
record_path /static/contents;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment