Resolving HTTP Redirection Issues in Docker Single Container and Linux deployment
Published:
This knowledge base describes the steps to resolve the HTTP redirection issue despite configuring HTTPS in a Docker single container and Linux deployment.
Docker:
- Add the following environment variable in the docker-compose.yaml file:
BOLD_SERVICES_REVERSE_PROXY=true
- After adding the environment variable, upgrade the deployment using the commands below:
docker-compose down
docker-compose up -d
Linux:
Linux deployment with Nginx
Please follow the steps below if you have deployed Bold BI using Nginx.
- Go to the location /etc/nginx/sites-available, open the Bold BI®-nginx-config file and make the changes below for all the services (id-web, id-api, id-ums, bi-web, bi-api, bi-jobs, bi-designer, bi-designer-helper, bi-etl, bi-aiservice).
From: proxy_set_header X-Forwarded-Proto $scheme;
To: proxy_set_header X-Forwarded-Proto https;
- Once these changes have been made for all the services, please restart the nginx using the command below:
Please follow the below steps while you have deployed the Bold BI using nginx.
sudo nginx -t
sudo nginx -s reload
Linux deployment with Apache
Please follow the steps below if you have deployed Bold BI using Apache.
- Go to the location /etc/apache2/sites-available, open the boldbi-apache-config.conf file and make the changes below for all the services (id-web, id-api, id-ums, bi-web, bi-api, bi-jobs, bi-designer, bi-designer-helper, bi-etl, bi-aiservice).
From: RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
To: RequestHeader set "X-Forwarded-Proto" "https"
- Once these changes have been made for all the services, please restart the apache using the command below:
sudo apache2ctl configtest
sudo systemctl restart apache2