Skip to content

Instantly share code, notes, and snippets.

@click0
Forked from mikoim/nginx.conf
Created March 9, 2022 23:09
Show Gist options
  • Save click0/e7a590875e1e8f8d5aac1a7829172b51 to your computer and use it in GitHub Desktop.
Save click0/e7a590875e1e8f8d5aac1a7829172b51 to your computer and use it in GitHub Desktop.
Split RTMP Stream with nginx-rtmp-module
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 8192;
allow publish 192.168.0.0/24;
deny publish all;
application stream {
live on;
meta copy;
push_reconnect 1s;
push rtmp://live-tyo.twitch.tv/app/YOUR_KEY;
push rtmp://a.rtmp.youtube.com/live2/YOUR_KEY;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment