I have a simple config like this:
rtmp {
access_log /var/log/nginx/access_rtmp.log;
server {
#listen localhost:1936;
listen unix:/run/nginx/rtmp.sock;
chunk_size 4096;
application owncast {
live on;
push rtmp://27.0.0.1:1937/live;
}
}
}
nginx-rtmp successfully creates the file, and stunnel happily connects to it, but I see nothing in my log files.
when I swap it out for "localhost", I see events in my log file.
stunnel:
stunnel[143860]: LOG6[0]: TLS accepted: new session negotiated
stunnel[143860]: LOG6[0]: TLSv1.3 ciphersuite: TLS_AES_256_GCM_SHA384 (256-bit encryption)
stunnel[143860]: LOG6[0]: Peer temporary key: ECDH, P-256, 256 bits
stunnel[143860]: LOG6[0]: s_connect: connecting localhost:/run/nginx/rtmp.sock
stunnel[143860]: LOG6[0]: s_connect: connected localhost:/run/nginx/rtmp.sock
stunnel[143860]: LOG6[0]: persistence: localhost:/run/nginx/rtmp.sock cached
stunnel[143860]: LOG5[0]: Service [rtmps-relay] connected remote server from unnamed socket
socket:
$ l /run/nginx/rtmp.sock
srw-rw-rw- 1 nginx acme 0 Jul 4 04:31 /run/nginx/rtmp.sock
I have a simple config like this:
nginx-rtmpsuccessfully creates the file, and stunnel happily connects to it, but I see nothing in my log files.when I swap it out for "localhost", I see events in my log file.
stunnel:
socket: