Nginx proxy streaming to multiple services

in steemcodeit •  6 years ago  (edited)

Hi, this is my nginx.conf useful to streaming to multiple sites at the same time.

Append this to your nginx.conf and set rtmp://localhost:1935/live as your streaming service and as key use test in your broadcast software.

#nginx.conf

rtmp {
        server {
                listen 1935;
                chunk_size 4096;

                application live {
                        live on;
                        record off;
                                                # Twitch
                        push rtmp://live-mad.twitch.tv/app/live_YOUR_KEY;
                                                
                                                #Restream.io
                        push rtmp://eu-madrid.restream.io/live/re_YOUR_KEY;
                                                
                                                #Dlive
                        push rtmp://stream.dlive.io/live?key=YOUR_KEY/YOUR_STEEM_USER;
                                                
                                                #Youtube
                        push rtmp://a.rtmp.youtube.com/live2/YOUR_KEY;
                                                
                                                #Mixer
                        push rtmp://ingest-ams.mixer.com:1935/beam/YOUR_KEY;

                }
        }
}

Start your nginx server and enjoy!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!