Skip to content

Advanced installation

If you want to use regular HTTP ports (80 and 443) for your server and/or assign a custom domain, you can install Nginx server and configure it as a reverse proxy with free SSL certificates from LetsEncrypt.

Install Nginx web server

sudo apt-get install nginx -y

Install LetsEncrypt certbot for Nginx

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update && sudo apt-get install python-certbot-nginx -y

Configure Ngnix

Create new config file with your domain name. Replace GCS.EXAMPLE.COM with yours

sudo cp config_templates/Nginx/example_site.conf /etc/nginx/sites-available/GCS.EXAMPLE.COM
Open it and set your domain name and root directory
sudo nano /etc/nginx/sites-available/GCS.EXAMPLE.COM
After saving, make a link to enable the site with Nginx
sudo ln -s /etc/nginx/sites-available/GCS.EXAMPLE.COM /etc/nginx/sites-enabled/GCS.EXAMPLE.COM

Create SSL certificate for your domain

sudo certbot --nginx
Choose your site in console dialog, then wait a minute while your certificate is created and domain name checked. At the end of process you will be prompted to choose whether to make redirection in config file or not. Press 1 (No redirect) and Enter, because our config file already has redirection instructions.
Check your Nginx site config (from the steps above) if there are two lines with paths to certificate files at the end of file.

LetsEncrypt makes 3 months valid SSL certificate and sets itself to a cronjob to automatically renew it, so there is no need to do anything with it. But if you want to renew it manually, run this command:

sudo certbot renew --dry-run

Nginx proxy pass for Nimble streamer

If you have installed Nimble Streamer on the same system, you can put it beyond Nginx and share your domain name and SSL certificate for web-app video streaming.

Create new config file in Nginx conf.d directory

sudo cp config_templates/Nginx/nimble_proxy.conf /etc/nginx/conf.d/nimble_proxy.conf
Open your Nginx site config (from steps above), find and uncomment Nimble Proxy Pass section
sudo nano /etc/nginx/sites-available/GCS.EXAMPLE.COM
Save it and continue with restarting Nginx.

Restart Nginx

sudo systemctl restart nginx
Check if it runs
sudo systemctl status nginx

Now you can access your dashboard with HTTPS connection, e.g.

Follow with: server dashboard overview