2020-09-19 22:40:18 +02:00
|
|
|
daemon off;
|
2020-09-19 21:46:46 +02:00
|
|
|
worker_processes 1;
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
rtmp {
|
|
|
|
server {
|
|
|
|
listen 1935;
|
|
|
|
chunk_size 8192;
|
|
|
|
application origin {
|
|
|
|
live on;
|
|
|
|
record off;
|
|
|
|
meta copy;
|
2020-09-19 23:05:53 +02:00
|
|
|
exec ffmpeg -i rtmp://localhost:1935/origin/___STREAMKEY___ -c copy -f flv rtmp://127.0.0.1:1935/live;
|
2020-09-19 21:46:46 +02:00
|
|
|
}
|
|
|
|
application live {
|
|
|
|
allow publish 127.0.0.1;
|
|
|
|
deny publish all;
|
|
|
|
live on;
|
|
|
|
record off;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|