Skip to content

Instantly share code, notes, and snippets.

@hSammir
Created May 7, 2014 03:13
Show Gist options
  • Select an option

  • Save hSammir/ad67097085dc53092ec4 to your computer and use it in GitHub Desktop.

Select an option

Save hSammir/ad67097085dc53092ec4 to your computer and use it in GitHub Desktop.
Contoh konfigurasi nginx-rtmp-module.
events {
worker_connections 1024; ## Default: 1024
}
http {
server {
listen 8080;
server_name localhost;
}
}
rtmp {
server {
listen 1935;
chunk_size 4000;
application mytv {
# enable live streaming
live on;
# record first 1K of stream
record all;
record_path /home/hsammir/TMP/av;
record_max_size 1K;
# append current timestamp to each flv
record_unique on;
# publish only from all ip
allow publish all;
#deny publish none;
#allow play all;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment