nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

rtmps support.

Open abinash67 opened this issue 4 years ago • 3 comments

I just want to support rtmps in nginx+rtmp module conf.Please help me to configure that.

abinash67 avatar Jun 21 '21 07:06 abinash67

Our stunnel configuration: pid = /var/run/stunnel4/stunnel.pid

output = /var/log/stunnel4/stunnel.log

setuid = stunnel4

setgid = stunnel4

https://www.stunnel.org/faq.html

socket = r:TCP_NODELAY=1

socket = l:TCP_NODELAY=1

debug = 4

[fb-live]

client = yes

accept = 1936

connect = rtmps.allthingsott.com:443 #this is our subdomain that is pointed to our rtmp+nginx module server

verifyChain = no

abinash67 avatar Jul 05 '21 05:07 abinash67

our nginx configuration: rtmp {

    server {

            listen 1935;

            chunk_size 4096;



            application live {

                    live on;

                    record off;

                    push rtmp://127.0.0.1:1936/rtmp/<<stream key>>;

            }

    }

}

abinash67 avatar Jul 05 '21 06:07 abinash67

check out that gist, it shows how to use nginx's stream module to receive TLS encapsulated RTMP (RTMPS) streams on the RTMP module: https://gist.github.com/laureen71/f46d45566dc4521b6a253c7b57dc0e32

If you want to use all on one server, just change the port of the RTMP server.

In both cases the public URL would then be rtmps://host.domain.com:1935/live/...

laureen71 avatar Oct 19 '21 14:10 laureen71