So I figured out how to configure the nginx rtmp module for a self hosted restream solution but I haven’t figured out if I can set a stream key to prevent anyone from being able to stream to my multicast server.
here’s my nginx.conf
rtmp {
server {
# Im using 1936 since the usual rtmp port (1935) is used by another application
listen 1936;
chunk_size 4096;
application live {
live on;
record off;
push rtmp://url.domain/live/key
}
}
}
update:
making some here and found this reddit thread
https://www.reddit.com/r/nginx/comments/ttjge8/nginx_rtmp_server_handling_streams_from_new/