In this example, we will learn how to position an Nginx server (running on a standalone machine) front of a Jenkins server (running on another standalone machine).
Running Jenkins behind a reverse proxy
Prerequisites
Before we begin, make sure you have the following things ready:
- We need two machines with at least 4 GB of RAM and a Multi-core processor. One will run Nginx and the other will run Jenkins.
- Depending on how you manage the infrastructure in your team, the machine could be an instance on a cloud platform (such as AWS, DigitalOcean, or any other cloud platform), a bare metal machine, or it could be a VM (on VMware vSphere or any other server virtualization software).
- The machine should have Ubuntu 16.04 or greater...