LiveSmart Server Video Installation

Requirements

  • TCP ports 80 and 443 are accessible;
  • ports 9002 for TCP and 40000-40100 for both TCP/UDP are available;
  • A hostname (such as sfu.example.com) for setup of a SSL certificate;
  • IPV4 and IPV6 addres;
  • Node.js at least v12;
  • python3-pip DEB package, build-essential DEB package and python version >= 3.6 with PIP;
  • gcc and g++ >= 4.9 or clang (with C++11 support);
  • cc and c++ commands (symlinks) pointing to the corresponding gcc/g++ or clang/clang++ executables;
  • PHP/MySQL recommended;
  • Ubuntu or Debian recommended;

More for server requirements can be found here.

Installation Manual

LiveSmart Server Video can be legally purchased only from CodeCanyon. If you have obtained the software from another source, you face the risk of it not working properly, or to have inclusions that may harm your system.

Installation of LiveSmart Server Video is easy and straightforward and done in several easy steps:

  • Edit app/src/config.js file. Fill in sslCrt and sslKey with your own certificate and key paths. Also in the bottom for announcedIp replace getLocalIp() with your server public IP;
  • In the root folder execute npm install, npm install -g pm2 and then pm2 start app/src/Server.js
  • You LiveSmart is now available at https://yourdomain:9002. In order to use it without the port number at the end, add these lines to your Apache config file for your domain and restart it:

    ProxyRequests off
    SSLProxyEngine on
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyCheckPeerExpire off
    ServerName sfu.new-dev.com
    ProxyPreserveHost On
    <Location "/">
    Order allow,deny
    Allow from all
    ProxyPass https://localhost:9002/
    ProxyPassReverse https://localhost:9002/
    </Location>
    <Location "/dash">
    ProxyPass "!"
    Order allow,deny
    Allow from all
    </Location>
    <Location "/server">
    ProxyPass "!"
    Order allow,deny
    Allow from all
    </Location>

    or if you are using nginx webserver:

    location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-NginX-Proxy true;
    proxy_pass https://localhost:9002/;
    proxy_ssl_session_reuse off;
    proxy_set_header Host $http_host;
    proxy_cache_bypass $http_upgrade;
    proxy_redirect off;
    }
    location /dash {

    }
    location /server {


    }

    The public folder of the webserver should point to public folder of the product.

  • (Optional for PHP/MySQL usage) Edit public/server/connect.php and put there your DB details. Execute the public/server/dump.sql file for your selected database;
  • Go to https://yourdomain/dash, login with admin/admin and activate your LiveSmart instance;

Was This Article Helpful?

4
0 Comments

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *