Skip to content

Instantly share code, notes, and snippets.

@channprj
Created April 7, 2020 16:10
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 channprj/db2a15b7a09a9f3c7142af5fc69be057 to your computer and use it in GitHub Desktop.
Save channprj/db2a15b7a09a9f3c7142af5fc69be057 to your computer and use it in GitHub Desktop.
Nginx conf for simultaneous streaming
worker_processes 2;
# error_log logs/error.log debug;
error_log off;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 4096;
access_log off;
application live {
live on;
record off;
# meta copy;
# live_auth off;
# live_auth_secret <SAMPLE_PRIVATE_KEY>;
# twitch
push rtmp://live-sel.twitch.tv/app/<TWITCH_STREAMING_KEY>;
# youtube
push rtmp://x.rtmp.youtube.com/live2/<YOUTUBE_ID>.<YOUTUBE_STREAMING_KEY>;
}
}
}
@channprj
Copy link
Author

channprj commented Apr 7, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment