update from sparkleup

This commit is contained in:
Madison Scott-Clary 2022-06-13 19:05:18 -07:00
parent bbdbb9790b
commit c4b308d615
1 changed files with 2 additions and 11 deletions

View File

@ -17,19 +17,10 @@
<p>This post will detail how to wrap your site with SSL using the Nginx web server as a reverse proxy for your Jenkins instance. <strong>This tutorial assumes some familiarity with Linux commands, a working Jenkins installation, and a Ubuntu 14.04 installation.</strong> </p>
<p>You can install Jenkins later in this tutorial, if you don&rsquo;t have it installed yet.</p>
<h2 id="prerequisites">Prerequisites</h2>
<p>This guide assumes that you are using Ubuntu 22.04. Before you begin, you should have a non-<strong>root</strong> user account with <code>sudo</code> privileges set up on your system. You can learn how to do this by following the <a href="https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04">Ubuntu 22.04 initial server setup tutorial</a>. You will also need the Nginx server installed. You can learn how to do this with the <a href="https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-22-04">How To Install Nginx on Ubuntu 22.04 tutorial</a>.</p>
<p>This guide assumes that you are using Ubuntu 22.04. Before you begin, you should have a non-<strong>root</strong> user account with <code>sudo</code> privileges set up on your system. You can learn how to do this by following the <a href="https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04">Ubuntu 22.04 initial server setup tutorial</a>. You will also need the Nginx server installed and hosting your domain. You can learn how to do this with the <a href="https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-22-04">How To Install Nginx on Ubuntu 22.04 tutorial</a>.</p>
<p>Additionally, having your Jenkins instance secured by SSL is very important. If is visible on the internet, you can secure it with Let&rsquo;s Encrypt. You can learn how to do this with the <a href="https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-22-04">How to Secure Nginx with Let&rsquo;s Encrypt on Ubuntu 22.04 tutorial</a>.</p>
<h2 id="step-1-configure-nginx">Step 1 — Configure Nginx</h2>
<p>Nginx has become a favorite web server for its speed and flexibility in recent years, which makes it an idea choice for our application.</p>
<h3 id="install-nginx">Install Nginx</h3>
<p>Update your package lists and install Nginx:</p>
<div class="codehilite"><pre><span></span><code>sudo apt-get update
sudo apt-get install nginx
</code></pre></div>
<p>It&rsquo;s not crucial, but you may want to check Nginx&rsquo;s version in case you need to do any troubleshooting down the road. Newer versions of Nginx provide a few more features as well.</p>
<div class="codehilite"><pre><span></span><code>nginx -v
</code></pre></div>
<h3 id="get-a-certificate">Get a Certificate</h3>
<p>Next, you will need to purchase or create an SSL certificate. These commands are for a self-signed certificate, but you should get an officially <a href="https://www.digitalocean.com/community/tutorials/openssl-essentials-working-with-ssl-certificates-private-keys-and-csrs">signed certificate</a> if you want to avoid browser warnings.</p>
<p>Move into the proper directory and generate a certificate:</p>