I already tried to find an answer but couldn't find anything on this board or on Google.
I followed a guide on YouTube on how to set up a Nginx server on my old MacBook Pro to stream a RTMP video from OBS to different platforms simultaneously.
I already tested it and everything works perfectly when I'm streaming to Twitch and YouTube. I also added Stunnel to stream to Facebook as well (since Facebook requires an RTMPS connection) and it works great.
As a final test I also wanted to add Telegram as a destination. I basically copy-pasted the configuration I did with Facebook but it's not working and I can't understand why.
This is my nginx.conf file:
rtmp {
server {
listen 1935;
ping 30s;
notify_method get;
application restream {
live on;
# YouTube configuration
push rtmp://a.rtmp.youtube.com/live2/******* STREAM KEY ********;
# Twitch configuration
push rtmp://mil02.contribute.live-video.net/app/******* STREAM KEY ********;
# Below is a push to Stunnel > Facebook
push rtmp://127.0.0.1:19350/rtmp/****** STREAM KEY ****;
# TELEGRAM
push rtmp://127.0.0.1:19351/rtmp/****** STREAM KEY *****;
}
}
}
Here's the configuration for Stunnel:
[fb-live]
client = yes
accept = 127.0.0.1:19350
connect = live-api-s.facebook.com:443
verifyChain = no
[telegram]
client = yes
accept = 127.0.0.1:19351
connect = dc4-1.rtmp.t.me/s/
verifyChain = no