From the course: Running Jenkins on AWS: Deploying and Managing Jenkins on Cloud Infrastructure

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Configure NGINX

Configure NGINX

- [Instructor] We're at a point where we have our Ubuntu server in place and Jenkins and NGINX are installed. You might be wondering, why do we need to install NGINX if we're setting up a Jenkins server? Let's stop for a moment and discuss how NGINX fits into this system. We'll be configuring NGINX to act as a reverse proxy that sits in front of the Jenkins web application. So instead of accessing our Jenkins application directly, we'll be accessing NGINX, which will pass on to Jenkins whatever requests we're sending in. Jenkins will process the request and send a response back to NGINX and NGINX will then deliver the response back to us. That seems like a lot of back and forth, but this configuration has its benefits. Security for the app server is the main benefit we get from the reverse proxy. Jenkins listens on port 8080 by default. By setting up a security group and a reverse proxy that only allows access on port 80, we can make sure that all requests to the app server come…

Contents