HAproxy und nginx RTMP

HAproxy und nginx RTMP

Ich versuche, HAproxy vor einem RTMP-Nginx-Server zu verwenden.

Die Verbindung wird zwar hergestellt, das Video wird jedoch nicht abgespielt.

Ich habe 2 Server: einenmit nginx unter Verwendung von RTMPund noch einermit HAproxy.

Dies ist dasHAproxyKonfiguration:

listen rtmp :1935
mode tcp
 balance roundrobin
server s1 rtmp_server_ip:1935 check

Ich habe auch versucht, es auf Port 1936 einzustellen.

Dies ist dasnginx RTMPKonfiguration:

rtmp
 {
    server
     {
        listen 1935;
        listen 1936 proxy_protocol;

        notify_method get;
        on_play http://127.0.0.1/vod_handler;
        application vod
        {
                play /path_to_videos/uploads/;
        }
}
   }

So sollte das Setup aussehen:

Web >> HaProxy >> Nginx RTMP

verwandte Informationen