Answer the question
In order to leave comments, you need to log in
How to remotely edit the /rtmp section in the nginx configuration file?
Good afternoon.
There is a server with nginx, which is used for restreaming on VK and YouTube. The link to the VK publication changes every time and the link to the broadcast in nginx.conf (/usr/local/nginx/conf/nginx.conf) is corrected through the console.
Is it possible to change the link through the web interface or something else + nginx reload?
Answer the question
In order to leave comments, you need to log in
- Nginx + Lua,
lua has such a thing as lua_shared_dict
, this is a hashmap that works atomically regardless of the number of workers in nginx. In fact, you can pass as an argument to nginx a link to the stream
, something like
and in the /stream-update nginx location something like
local cache = ngx.shared.ourmegacache // ourmegacache - имя стора
local args = ngx.req.get_uri_args()
local link = tonumber(args.link) or ""
cache:set('url', link, 3600)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question