Install Jenkins and nginx as
Reverse Proxy

Install and configure Jenkins and Nginx as reverse proxy with SSL Certificate
Jenkins is an open-source automation server. Jenkins helps automate parts of software development related to building, testing, and deploying, facilitating continuous integration and continuous delivery (CI/CD) for software development. In this case, the lab used is based on Linux CentOS.
The initial step to install Jenkins is to add the Jenkins repository on the server.
Then, install the Java application.
After the Java installation is complete, install Jenkins.
After the Jenkins installation is complete, enable the service and check the status of the Jenkins service using the following command.

After all installations are complete and the Jenkins service is successfully active, access Jenkins via a web browser with the URL http://ip_jenkins-or-domain:8080. This will display a screen similar to the one below.

Enter the command sudo cat /var/lib/jenkins/secrets/initialAdminPassword on the Jenkins server to retrieve the administrator password.

Select Install suggested plugins to install the default plugins available, and wait until the plugin installation progress for Jenkins is complete.


After the plugin installation is complete, the next step is to create an admin user to access the Jenkins dashboard.

In this section, you can enter the IP address or use the specified domain.

The Jenkins installation is complete, and you have successfully accessed the Jenkins dashboard.



Now it’s time to install Nginx as a reverse proxy for Jenkins, so that Jenkins runs behind Nginx and you don't have to use port 8080 when accessing it via a web browser.
Install Nginx using the following command.
Then, enable the Nginx service and check the status of the Nginx service.

Next, create an SSL folder to place the existing SSL files.
Next, create a new file for the Nginx configuration.

After the Nginx configuration file is created, restart the Jenkins and Nginx services.
After the Nginx configuration file is complete, it's time to try accessing it through a web browser using the HTTPS port: https://your_domain.


