thiagoeolima / nginx-rtmps

Docker image with Nginx using the nginx-rtmp-module module for streaming and Stunnel to add TLS encryption functionality.
33 stars 21 forks source link

Multistream #9

Open x3r4n0 opened 1 year ago

x3r4n0 commented 1 year ago

Multistream possible to activate 2 Services? like Twitch and Kick?

thiagoeolima commented 1 year ago

Yes, it only adds as variables of each service.

docker run -it -p 1935:1935 -e TWITCH_URL="rtmp://<url>" -e TWITCH_KEY="<key>" -e KICK_KEY="<key>" thiagoeolima/nginx-rtmps

x3r4n0 commented 1 year ago

ahhh perfect! thank you can u maybe add some security vars? like Auth-Key? if anyone knows the IP he can just streaming...

successtheman commented 1 year ago

ahhh perfect! thank you can u maybe add some security vars? like Auth-Key? if anyone knows the IP he can just streaming...

Set up iptables rules to restrict the IP to only allow streams from a specific ip address or you can modify the container yourself to accept some sort of security var but I don't believe thiago is actively maintaining this he just accepts improvements if they seem reasonable (change IP and port since this one is intentionally invalid as it is an example)

iptables -A INPUT -p tcp --dport 1234 ! -s 256.256.256.256 -j DROP