TV broadcast's settings via HTTP (NGINX, udpxy and vlc)
NGINX settings for temporary links
If the portal was installing with manual use and IP server middleware: 192.168.1.1, then NGINX configuration will be:
server{ listen 0.0.0.0:8888; rewrite ^/ch/(.*) /stalker_portal/server/api/chk_tmp_tv_link.php?key=$1 last; location /stalker_portal { internal; proxy_set_header Host 192.168.1.1; # <-- Middleware server hostname or IP proxy_set_header X-Real-IP $remote_addr; proxy_pass http://192.168.1.1:88/stalker_portal; # <-- Middleware server IP } location ~* ^/get/(.*?)/(.*) { internal; set $upstream_uri $2; set $upstream_host $1; set $upstream_url http://$upstream_host/$upstream_uri; proxy_set_header Host $upstream_host; proxy_set_header X-Real-IP $remote_addr; proxy_pass $upstream_url; } }
Ministra TV platform settings
There are two configuration options:
(recommended).In the portal configuration, you need to set
stream_proxy = ''
When adding a TV channel to the admin interface, you must set the Temporary HTTP link option. In the Address field, you must specify an address in the form:
ffrt http://192.168.1.1:8888/127.0.0.1:8899/udp/239.1.1.1:1234
Where 192.168.1.1:8888 is the address of the broadcast server (with NGINX), and part 127.0.0.1:8899/udp/239.1.1.1:1234 is the address by which NGINX should see udpxy.
(obsolete).In portal configuration (custom.ini) it is necessary to point server IP address with NGINX in stream_proxy parameter. It is necessary to setup the option Temporary HTTP links in admin interface with TV channel adding. In Address field it is necessary to point the address
ffrt http://localhost:8899/udp/239.1.1.1:1234
NGINX must see udpxy using this address.