We have a current [url removed, login to view] that has a:
include /usr/local/nginx/html/[url removed, login to view]
Inside the [url removed, login to view] we have this command:
# Stream 123456789 - creates the sampled or "trans-rated" ffmpeg based video stream
exec ffmpeg -i rtmp://[url removed, login to view]
-c:v libx264 -profile:v baseline -b:v 1024k -s 1280x720 -f flv -c:a aac
-ac 1 -strict -2 -b:a 512k rtmp://[url removed, login to view];
On that Example [url removed, login to view] is an IP ,and 123456789 is a KEY used to stream
MY PROBLEM is that we need to ADD each of the KEYS 1 by 1 and is impossible since in our complete site we generate many KEYS per hour, so we could not stop conf file to add keys every minute. We are looking for a solution in which this code is setup for ANY amount of keys with out need to be writing them. Maybe having a variable instead of fixed KEYs. Or could be some way that the conf file look into a database to get the keys. Or any similar solution.
Since this is a quick question we will create milestone and make payment after testing that really works.