VOD setup

Installation, configuration
iTrim
Posts: 6
Joined: 16 Feb 2017, 18:40

VOD setup

Postby iTrim » 16 Feb 2017, 18:44

Hi Guys,

I setup two servers, one is Middlware Server with Stalker Middleware portal
and the other is storage with T2 tuner card,

I got the mag250 streaming channels from the storage server via access from Middleware but I cant seem to get the VOD
to work for the life of me,

Not sure where to go from here, is there anyone that has had similar problems with VOD

iTrim
Posts: 6
Joined: 16 Feb 2017, 18:40

Re: VOD setup

Postby iTrim » 16 Feb 2017, 18:58

My Middleware apache config /etc/apache2/sites-available/000-default.conf


<VirtualHost *:88>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/stalker_portal/>
Options -Indexes -MultiViews
AllowOverride ALL
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>


My middleware Nginx config /etc/nginx/sites-enabled/default


server {
listen 80;
server_name localhost;

location / {
proxy_pass http://192.168.10.2:88/; //My Middleware Server
proxy_set_header Host 192.168.9.254; //My Storage / Streaming Server
proxy_set_header X-Real-IP $remote_addr;
}

location ~* \.(htm|html|jpeg|jpg|gif|png|css|js)$ {
root /var/www;
expires 30d;
}

}


My Storage / Streaming apache config /etc/apache2/sites-available/000-default.conf

<VirtualHost *:88>


ServerAdmin webmaster@localhost
DocumentRoot /var/www/

TimeOut 1800

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined


</VirtualHost>


My Storage / Streaming Nginx config /etc/nginx/sites-enabled/default

server {
listen 80;
server_name example.com;

location / {
proxy_set_header Host 192.168.9.254; //My Storage Streaming server
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://192.168.10.2:88/; //My Middleware Server
}

location ~* \.(mpg|mpeg|avi|ts|mkv|mp4|mov|m2ts|flv|m4v|srt|sub|ass)$ {

secure_link $arg_st,$arg_e;
secure_link_md5 "supersecret$uri$remote_addr$arg_e"; # you can change secret "supersecret" in the portal config - nginx_secure_link_secret

if ($secure_link = "") {
return 403;
}

if ($secure_link = "0") {
return 410;
}

send_timeout 6h;
root /var/www/;
}
}


My Storage / Streaming Server /var/www/stalker_portal/storage/config.php

define('VIDEO_STORAGE_DIR', '/media/raid0/storage/');
define('KARAOKE_STORAGE_DIR', '/media/raid0/karaoke/');
define('RECORDS_DIR', '/media/raid0/records/');
define('NFS_HOME_PATH', '/media/raid0/mac/');
// Use login and password from the configuration file. (api_auth_login and api_auth_password in server/custom.ini)
define('API_URL', 'http://password:password@192.168.10.2/s ... ortal/api/'); //MY MIDDLEWARE IP
define('PORTAL_URL', 'http://192.168.10.2/stalker_portal/'); //MY MIDDLEWARE IP
define('STORAGE_NAME', 'HDDIPTV');
define('ASTRA_RECORDER', false);
define('DUMPSTREAM_BUFFERING', 1); // set -1 for system default

folivae
Posts: 1
Joined: 27 May 2018, 19:25

Re: VOD setup

Postby folivae » 27 May 2018, 19:26

Hello,

I have same problem.

Could someone help me with this configuration?

Thanks.

raven7558
Posts: 1
Joined: 05 Jun 2018, 13:25

Re: VOD setup

Postby raven7558 » 10 Jun 2018, 12:44

Thanks to this post i was able to find my own issues, so i wanted to thank you by posting what i think is wrong with your config. hope it helps ;-)

Try the following:

<VirtualHost *:88>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/stalker_portal/>
Options -Indexes -MultiViews
AllowOverride ALL
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Middleware Nginx config /etc/nginx/sites-enabled/default


server {
listen 80;
server_name localhost;

location / {
proxy_pass http://127.0.0.1:88/;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;

}

location ~* \.(htm|html|jpeg|jpg|gif|png|css|js)$ {
root /var/www;
expires 30d;
}
}


My Storage / Streaming apache config /etc/apache2/sites-available/000-default.conf

<VirtualHost *:88>


ServerAdmin webmaster@localhost
DocumentRoot /var/www/

TimeOut 1800

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined


</VirtualHost>


My Storage / Streaming Nginx config /etc/nginx/sites-enabled/default

server {
listen 80;
server_name mypage.com;

location / {
proxy_pass http://127.0.0.1:88/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;

}

location ~* \.(mpg|mpeg|avi|ts|mkv|mp4|mov|m2ts|flv|m4v|srt|sub|ass)$ {

secure_link $arg_st,$arg_e;
secure_link_md5 "supersecret$uri$remote_addr$arg_e"; # you can change secret "supersecret" in the portal config - nginx_secure_link_secret

if ($secure_link = "") {
return 403;
}

if ($secure_link = "0") {
return 410;
}

send_timeout 6h;
root /var/www/;
}
}


My Storage / Streaming Server /var/www/stalker_portal/storage/config.php

define('VIDEO_STORAGE_DIR', '/media/raid0/storage/');
define('KARAOKE_STORAGE_DIR', '/media/raid0/karaoke/');
define('RECORDS_DIR', '/media/raid0/records/');
define('NFS_HOME_PATH', '/media/raid0/mac/');
// Use login and password from the configuration file. (api_auth_login and api_auth_password in server/custom.ini)
define('API_URL', 'http://stalker:secret_pass@192.168.10.2 ... ortal/api/'); //MY MIDDLEWARE IP or if over WAN your website domain ex: storage.mypage.com - use stalker:secret_pass as user and password (unless you changed it) as this is the default that is set in /var/www/stalker_portal/server/config.ini under the section "server api" -> see explanation below
define('PORTAL_URL', 'http://192.168.10.2/stalker_portal/'); //MY MIDDLEWARE IP or if over WAN your website domain ex: storage.mypage.com
define('STORAGE_NAME', 'HDDIPTV');
define('ASTRA_RECORDER', false);
define('DUMPSTREAM_BUFFERING', 1); // set -1 for system default

Make sur to make symbolic links to all four folders storage/karaoke/records/mac

for "Server Api" section in server/config.ini, make sure it looks like this as this is the username/password you need in /var/www/stalker_portal/storage/config.php
[server_api]
; API required for tv archive, pvr and billing
enable_api = true

enable_soap_api = true

; For security reasons it is highly recommended to use HTTP authentication
api_auth_login = stalker
api_auth_password = secret_pass
enable_api_log = true



Return to “Installation & settings”



Who is online

Users browsing this forum: No registered users and 3 guests

cron