Installing the Debian package and configuring the web server
Requires |
---|
Node.js and further tools are installed. The MongoDB database is installed and configured. |
-
From our myelux.com portal, under Downloads > Scout Cloud Gateway, download the SCG Debian package
scg_< version>_amd64.deb
. -
Install the Debian package by using the following command:
dpkg -i scg_< Version>_amd64.deb <!--NeedCopy-->
a. Start the SCG service.
systemctl start scg-controller <!--NeedCopy-->
b. Optionally, configure the components for automatic system start-up.
systemctl enable 'nginx' 'cron' 'scg-controller' <!--NeedCopy-->
-
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.a. 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 filesssl_certificate /opt/unicon/scg/certs/http/certificate.crt; ssl_certificate_key /opt/unicon/scg/certs/http/certificate.key; <!--NeedCopy-->
b. Make sure that the SCG configuration is not overwritten by the NGINX default configuration.
rm /etc/nginx/sites-enabled/default <!--NeedCopy-->
c. To customize the NGINX user, edit the file
/etc/nginx/nginx.conf
(from SCG 1 2209)user scg-web scg-web; <!--NeedCopy-->
d. Restart the service.
systemctl restart nginx <!--NeedCopy-->
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.
- After you have configured your SCG in the SCG WebAdmin Interface, to check whether all components are running, use the following command:
systemctl status --no-pager --lines=0 'scg-mongod' 'nginx' 'cron' 'scg-openvpn' 'scg-backend' 'scg-controller'
<!--NeedCopy-->