Articles in this section
Category / Section

Bold BI deployment using DMZ Setup on Linux environment

Published:

This section explains how to set up and deploy the Bold BI deployment using DMZ Setup on a Linux environment.

Prerequisites

  1. Two virtual machines (Public and Private) using the same Vnet.
    Private Linux VM – Bold BI installation
    Public Linux VM – Nginx proxy server
  2. You can obtain the machine configuration for deploying the Bold BI application using the link provided below on a Private machine.
    https://help.boldbi.com/deploying-bold-bi/deploying-in-linux/prerequisites-linux/

Setup and Deployments

  1. You need to install the Bold BI application on a Private machine using a private IP.
    https://help.boldbi.com/deploying-bold-bi/deploying-in-linux/installation-and-deployment/bold-bi-on-ubuntu/

    Note: If the Private Machine IP is 10.0.0.1, then my installation command is as follows:

    sudo bash install-boldbi.sh -i new -u root -h http://10.0.0.1 -n true
    
  2. Once the installation is completed, install the Nginx server by following the command below on the Public Machine.

    sudo apt update
    sudo apt install nginx
    
  3. Then, navigate to the location below to configure the Nginx reverse proxy to access the Bold BI application using a public endpoint.

    Location: /etc/nginx/sites-available

  4. Please remove any default Nginx files that may be present and create a new configuration file with the following settings. Make sure to include the private machine’s IP address along with the protocol in the proxy pass.
    Example: Private IP – 10.0.0.1

    image.png

    #server {
    #listen 80;
    #server_name example.com;
    #return 301 https://example.com$request_uri;
    #}
    server {
            listen 80 default_server;
            listen [::]:80 default_server;
    
            #server_name   example.com;
    
            #listen 443 ssl;
            #ssl_certificate /etc/nginx/sites-available/domain.crt;
            #ssl_certificate_key /etc/nginx/sites-available/domain.key;
    location / {
            proxy_pass http://10.0.0.1;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_http_version 1.1;
            proxy_set_header   Upgrade $http_upgrade;
            proxy_set_header   Connection keep-alive;
            proxy_set_header   Host $http_host;
            proxy_cache_bypass $http_upgrade;
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header   X-Forwarded-Proto $http_x_forwarded_proto;
            proxy_set_header X-Forwarded-Host $host;
        }
    }
    
    
  5. Once the configuration file has been created, create the symbolic link using the link provided below.
    For example: File name – boldbi-nginx

    sudo ln -s /etc/nginx/sites-available/boldbi-nginx /etc/nginx/sites-enabled/boldbi-nginx
    
  6. Then, check the syntax and restart the Nginx server on the public machine.

    sudo nginx -t
    

    image.png

    sudo nginx -s reload
    
  7. Now the site is accessible through the public machine IP.

Additional Reference

  1. Install optional libraries
  2. Application startup
  3. How to Troubleshoot the Bold BI Application Deployment in Linux Environment
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SS
Written by Sivanesan Saravanan
Updated:
Comments (0)
Please  to leave a comment
Access denied
Access denied