Answer the question
In order to leave comments, you need to log in
How to setup nginx+lua (openresty) + udpxy for IPTV?
Hello!
udpxy is running on the server.
In the nginx config, something like this:
location / {
access_by_lua_block {
local mysql = require "resty.mysql"
-- Идет запрос к БД, если пользователь имеет право смотреть поток то, делаем proxy_pass
-- иначе обрываем соединение
ngx.exit(200)
}
proxy_pass http://192.168.1.1:80/udp/192.168.1.100:2223;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question