How to make your own multistream rtmp server on ubuntu 18

sudo apt update && apt upgrade -y

sudo apt-get dist-upgrade

sudo apt install nginx-full libnginx-mod-rtmp

sudo nano /etc/nginx/nginx.conf

And add the following lines at the end of the configuration file:

rtmp {
        server {
                listen 1935;
                chunk_size 4096;

                application live {
                        live on;
                        record off;
                        #push facebook
                        push rtmp://127.0.0.1:19350/rtmp/your stream key here;
                        #push twitch
                        push rtmp://live-cdg.twitch.tv/app/your stream key here;
                        
                }
        }
}

Now let’s setup stunnel

apt install stunnel4

sudo nano /etc/stunnel/stunnel.conf

setuid = stunnel4
setgid = stunnel4
pid=/tmp/stunnel.pid
output = /var/log/stunnel4/stunnel.log
include = /etc/stunnel/conf.d

sudo nano /etc/default/stunnel4

ENABLE=1

sudo mkdir /etc/stunnel/conf.d/

sudo nano /etc/stunnel/conf.d/fb.conf

[fb-live]
client = yes
accept = 127.0.0.1:19350
connect = live-api-s.facebook.com:443
verifyChain = no

systemctl restart stunnel

systemctl restart nginx.service

if you get an error run

nginx -t -c /etc/nginx/nginx.conf

明尼蘇達州 第2個武漢病毒案子

Minnesota health officials report second case of coronavirus

Minnesota health officials announced Sunday evening that they’ve confirmed a second case of coronavirus in the state.

The latest case is a resident of Carver County who’s in their 50s, and likely was exposed to the virus while traveling in Europe in late February.

The patient developed symptoms on March 2 and sought medical treatment on Saturday; testing came back positive Sunday.