Skip navigation

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:

  1. (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.

  2. (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.

Need Help

Cindy is an expert on the Ministra TV platform and the author of this article.

Was this article helpful?

Yes No

Sorry to hear that.
How can we improve this article?

We use cookies in order to optimise our website, provide you with the best possible user experience and help us promote our products. Please read our Cookie Policy to find out how we use cookies and how you can control cookies.
By using this website or closing this message, you acknowledge our Privacy Policy and agree to our use of cookies as described in our Cookie Policy.