Bold BI deployment using DMZ Setup on Linux environment
This section explains how to set up and deploy the Bold BI deployment using DMZ Setup on a Linux environment.
Prerequisites
- Two virtual machines (Public and Private) using the same Vnet.
Private Linux VM – Bold BI installation
Public Linux VM – Nginx proxy server - 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
-
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
-
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
-
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
-
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
#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; } }
-
Once the configuration file has been created, create the symbolic link using the link provided below.
For example: File name – boldbi-nginxsudo ln -s /etc/nginx/sites-available/boldbi-nginx /etc/nginx/sites-enabled/boldbi-nginx
-
Then, check the syntax and restart the Nginx server on the public machine.
sudo nginx -t
sudo nginx -s reload
-
Now the site is accessible through the public machine IP.