Load Balancer Configuration
Last updated
Last updated
In many cases, you would like to have the API Server and the PDF Server reside within the same "instance" and then route traffic to the correct container based on the traffic coming into the deployment. To achieve this, you can use a popular tool called NGINX to serve as a reverse proxy to these internal containers. The following illustrates how this can be done.
Before we begin, please make sure that you have a Portal API Server running by following the .
Next, you will want to have a running PDF Server by following the .
Once you have both of these containers running, you will then run the following to install NGINX
In order to bring all of these locally hosted servers into a single HTTP interface, we can use NGINX to sit in front of these servers.
To setup this configuration, please go through the following steps.
Install NGINX using the following command.
We can check to ensure that we have NGINX running with the following command.
We now need to edit the nginx.conf file to redirect HTTP traffic to the internal servers.
Put the following contents in that file.
Note, for this configuration to work with Minio, you will need to create a subdomain @ http://minio.yourserver.com that points to this server. Minio does not support being hosted outsiide of the root domain.
Now save that file, and then switch this out for the default
server
We can now test that we have both an API server and a PDF Server running by going to the following URLs in our Browser.
http://yourdomain.com/status (should show the API Server status)
http://yourdomain.com/pdf/ (should show the PDF Server status)