RTMPS Support? #457
In case it helps others who need to get this done, here is how you can accomplish it using HAProxy.
Make sure you have HAProxy compiled with SSL support. It seems the official packages on several Linux distros are compiled without it [from licensing considerations, I suspect] and so, you may need to compile your own.
Config on a single machine running both Nginx with the RTMP module and HAProxy should be similar to:
Of course, on a Production ENV, for redundancy, you'd ideally want several Nginx nodes and HAProxy should reside on a separate machine.
Frankly, while supporting RTMPs natively within the module could be nice, on Prod. ENVs you'll want it done with a load balancer and SSL offloading anyhow..
referenced this issue
Oct 13, 2016
Thanks your answer.
I use ffmpeg to push my streaming :
always return :
but i sure the cert is correctly. use
This was referenced
May 18, 2019
I tried to look at that video but his video is to hard to follow, and it isn't as easy setting stunnel up to act as a proxy for streaming rtmps to Facebook as he alleges. I have been working on this for over a day now without success. I have followed at least a half dozen different tutorials, which every one leaves out a lot of key information to make it work, and still can't get a ffmpeg stream connected to Facebook. My biggest problem using the stunnel proxy method is that there are 3 different apps involved in this; ffmpeg, stunnel, and Openssl, and stunnel is not outputting anything to the log file. This all makes troubleshooting impossible.
I have also tried to set up Hyproxy but I can't even get that to run. I had to compile it twice, the first time the version that is suggested in the above post wouldn't even compile with the current version of Openssl. I used the latest stable version and it then compiled properly but the instructions for setup in the above are also out of date and will not work with the current version.
After messing with this project for a while, I think that the greatest hope lies with stunnel but I am going to need help from someone more familiar with streaming with ffmpeg through a stunnel client.
Looking around the internet at streaming possibilities, I think that rtmp will be going out the same way http has in favor of everyone insisting on the secure solution. It would be sooo much better if nginx-rtmp also did rtmps directly instead of scluging up work arounds for future needs.