Installing the Debian package and configuring the web server

Requires 

Node.js and further tools are installed. The MongoDB database is installed and configured.

  1. From our myelux.com portal, under Downloads > Scout Cloud Gateway, download the SCG Debian package scg_<version>_amd64.deb.

  2. Install the Debian package by using the following command:

    Copy
    dpkg -i scg_<Version>_amd64.deb
    1. Start the SCG service.

      Copy
      systemctl start scg-controller
    2. Optionally, configure the components for automatic system start-up.

      Copy
      systemctl enable  'nginx' 'cron' 'scg-controller'
  3. Configure the NGINX web server:

    By default, the SCG installs a functional web server configuration under the path /etc/nginx/conf.d/scg.conf. Here, self-signed certificates are linked for initial communication.

    1. Optional: Replace the self-signed certificates with your own. To do so, edit the file /etc/nginx/conf.d/scg.conf and replace the certificate files
      ssl_certificate /opt/unicon/scg/certs/http/certificate.crt;
      ssl_certificate_key /opt/unicon/scg/certs/http/certificate.key;

    2. Make sure that the SCG configuration is not overwritten by the NGINX default configuration.

      Copy
      rm /etc/nginx/sites-enabled/default
    3. To customize the NGINX user, edit the file /etc/nginx/nginx.conf1

      Copy
      user scg-web scg-web;
    4. Restart the service.

      Copy
      systemctl restart nginx

 

The installation is complete. In the next step, use a browser to log on to the SCG WebAdmin interface and configure your SCG instance. For further information, see Gateway configuration in the SCG WebAdmin interface.