{"id":38573,"date":"2021-09-20T12:30:00","date_gmt":"2021-09-20T17:30:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=38573"},"modified":"2022-06-03T03:31:32","modified_gmt":"2022-06-03T08:31:32","slug":"how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/","title":{"rendered":"How to Install Gitea with NGINX and Free Let&#8217;s Encrypt SSL on Ubuntu 20.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"742\" height=\"372\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/09\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg\" alt=\"how to install gitea with nginx and free let\u2019s encrypt ssl on ubuntu 20.04\" class=\"wp-image-38931\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/09\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/09\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/09\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\n\n\n\n<p>In this tutorial, we are going to show you how to install the Gitea software on your VPS along with Nginx as a webserver and Free Let&#8217;s Encrypt certificate, using Ubuntu 20.04.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.png\" alt=\"install gitea with nginx and free lets encrypt ssl on ubuntu 20.04\" class=\"wp-image-38605\" width=\"139\" height=\"139\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.png 220w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-150x150.png 150w\" sizes=\"(max-width: 139px) 100vw, 139px\" \/><\/figure><\/div>\n\n\n\n<p>Gitea is software written in &#8220;Go&#8221; programing language and is similar to Bitbucket, GitHub, and Gitlab. The software is used for self-hosted Git service and is compatible with multiple operating systems like Linux, Windows, macOS, and ARM. <\/p>\n\n\n\n<p>The installation will take no more than 10 minutes and you will enjoy it while installing it. Let&#8217;s get started!<\/p>\n\n\n\n<!--more-->\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69cbef6179f59\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69cbef6179f59\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-Step-1-Update-the-System\" >Step Step 1. Update the System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-2-Install-the-required-dependencies\" >Step 2. Install the required dependencies<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-3-Install-Nginx-webserver\" >Step 3. Install Nginx webserver<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-4-Install-MariaDB-database-server\" >Step 4. Install MariaDB database server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-5-Configure-MariaDB-database-server\" >Step 5. Configure MariaDB database server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-6-Create-database-and-database-user\" >Step 6. Create database and database user<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-7-Install-Gitea\" >Step 7. Install Gitea<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-8-Create-Gitea-Service\" >Step 8. Create Gitea Service<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-9-Nginx-as-a-Reverse-Proxy-for-Gitea\" >Step 9. Nginx as a Reverse Proxy for Gitea<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#Step-10-Install-Free-Lets-Encrypt-SSL-certificate\" >Step 10. Install Free Let&#8217;s Encrypt SSL certificate<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#11-Access-the-Gitea-website-securely\" >11. Access the Gitea website securely<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"h-prerequisites\"><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Fresh install of Ubuntu 20.04<\/li><li>User privileges: root or non-root user with sudo privileges<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-Step-1-Update-the-System\"><\/span>Step Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A fresh installation of Ubuntu 20.04 needs a system update and that&#8217;s why we need to execute the following commands.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update -y &amp;&amp; sudo apt upgrade -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-2-Install-the-required-dependencies\"><\/span>Step 2. Install the required dependencies<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>These packages need to be installed before we proceed with the installation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt install gnupg2 git unzip -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-3-Install-Nginx-webserver\"><\/span>Step 3. Install Nginx webserver<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Nginx web server can be installed with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install nginx -y<\/pre>\n\n\n\n<p>Once, the installation is complete you can check the status of the Nginx service:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl status nginx<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-4-Install-MariaDB-database-server\"><\/span>Step 4. Install MariaDB database server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>MariaDB is used as database backend for the Gitea and it can be installed with the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install mariadb-server -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-5-Configure-MariaDB-database-server\"><\/span>Step 5. Configure MariaDB database server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Once, the database server is installed successfully we need to configure it.<\/p>\n\n\n\n<p>Log in to the MariaDB shell with &#8220;<b>mysql<\/b>&#8221; command and enable the Innodb table:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">MariaDB [(none)]&gt; SET GLOBAL innodb_file_per_table = ON;<\/pre>\n\n\n\n<p>Exit from the MariaDB shell with &#8220;<b>exit<\/b>&#8221; command and open the default MariaDB configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo nano \/etc\/mysql\/mariadb.conf.d\/50-server.cnf<\/pre>\n\n\n\n<p>Add the following lines of code under the &#8220;<b>mysqld<\/b>&#8221; section<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">innodb_file_format = Barracuda<br>\ninnodb_large_prefix = 1<br>\ninnodb_default_row_format = dynamic<\/pre>\n\n\n\n<p>Once, the changes are made restart the MariaDB service in order for the changes to take effectivity.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl restart mariadb<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-6-Create-database-and-database-user\"><\/span>Step 6. Create database and database user<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Gitea software requires database and user in order can function properly. To create them and grant the proper privileges please log in back to the MariaDB shell and execute the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">MariaDB [(none)]&gt;CREATE DATABASE gitea;<br>MariaDB [(none)]&gt;CREATE USER 'gitea'@'localhost' IDENTIFIED BY 'strongpasswordhere';<br>MariaDB [(none)]&gt;GRANT ALL ON gitea.* TO 'gitea'@'localhost' IDENTIFIED BY 'strongpasswordhere' WITH GRANT OPTION;<br>MariaDB [(none)]&gt;ALTER DATABASE gitea CHARACTER SET = utf8mb4 COLLATE utf8mb4_unicode_ci;<br>MariaDB [(none)]&gt;FLUSH PRIVILEGES;<br>MariaDB [(none)]&gt;exit;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-7-Install-Gitea\"><\/span>Step 7. Install Gitea<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This is the step we were waiting so long and that is installing the Gitea software. Before we install it, we need to create a system user to run Gitea with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo adduser --system --group --disabled-password --shell \/bin\/bash --home \/home\/git --gecos 'Git Version Control' git<\/pre>\n\n\n\n<p>Next is to download the latest version of Gitea on your server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo wget https:\/\/dl.gitea.io\/gitea\/1.14.6\/gitea-1.14.6-linux-amd64<\/pre>\n\n\n\n<p>Once, the Gitea is downloaded we need to copy the binary to the system path and set the right permissions :<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo cp gitea-1.14.6-linux-amd64 \/usr\/bin\/gitea &amp;&amp; chmod 755 \/usr\/bin\/gitea<\/pre>\n\n\n\n<p>Next, step is to create Gitea directory for storing the data and the logs along with their permissions:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo mkdir -p \/etc\/gitea \/var\/lib\/gitea\/{custom,data,indexers,public,log}<br>sudo chown git:git \/etc\/gitea \/var\/lib\/gitea\/{custom,data,indexers,public,log}<br>sudo chmod 750 \/var\/lib\/gitea\/{data,indexers,log}<br>sudo chmod 770 \/etc\/gitea<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-8-Create-Gitea-Service\"><\/span>Step 8. Create Gitea Service<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Create an empty file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo nano \/etc\/systemd\/system\/gitea.service<\/pre>\n\n\n\n<p>And, import the following lines of code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[Unit]<br>Description=Gitea<br>After=syslog.target<br>After=network.target<br>After=mysql.service<br>[Service]<br>RestartSec=2s<br>Type=simple<br>User=git<br>Group=git<br>WorkingDirectory=\/var\/lib\/gitea\/<br>ExecStart=\/usr\/bin\/gitea web -c \/etc\/gitea\/app.ini<br>Restart=always<br>Environment=USER=git HOME=\/home\/git GITEA_WORK_DIR=\/var\/lib\/gitea<br>[Install]<br>WantedBy=multi-user.target<\/pre>\n\n\n\n<p>After creating the file with content in it reload the configuration file, enable and start the Gitea service.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl daemon-reload<br>sudo systemctl enable gitea<br>sudo systemctl start gitea<\/pre>\n\n\n\n<p>To check if Gitea is running properly execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl status gitea<\/pre>\n\n\n\n<p>The output should be similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># sudo systemctl status gitea<br>\n\u25cf gitea.service - Gitea<\/pre>\n\n\n\n<p>Loaded: loaded (\/etc\/systemd\/system\/gitea.service; enabled; vendor preset: enabled)<br>Active: active (running) since Mon 2021-08-09 23:36:36 CEST; 8min ago<br>Main PID: 42187 (gitea)<br>Tasks: 6 (limit: 4652)<br>Memory: 111.8M<br>CGroup: \/system.slice\/gitea.service<br>\u2514\u250042187 \/usr\/bin\/gitea web -c \/etc\/gitea\/app.ini<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-9-Nginx-as-a-Reverse-Proxy-for-Gitea\"><\/span>Step 9. Nginx as a Reverse Proxy for Gitea<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, create new Nginx configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo nano \/etc\/nginx\/conf.d\/gitea.conf<\/pre>\n\n\n\n<p>Add the following lines of code:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">upstream gitea {<br>server 127.0.0.1:3000;<br>}<br>server {<br>listen 80;<br>server_name gitea.yourdomain.com;<br>root \/var\/lib\/gitea\/public;<br>access_log off;<br>error_log off;<br>location \/ {<br>try_files maintain.html $uri $uri\/index.html @node;<br>}<br>location @node {<br>client_max_body_size 0;<br>proxy_pass http:\/\/localhost:3000;<br>\nproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>proxy_set_header X-Real-IP $remote_addr;<br>proxy_set_header Host $http_host;<br>proxy_set_header X-Forwarded-Proto $scheme;<br>proxy_max_temp_file_size 0;<br>proxy_redirect off;<br>proxy_read_timeout 120;<br>}<br>}<\/pre>\n\n\n\n<p>Once, the file is created save it close it, and check the Nginx configuration with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nginx -t<\/pre>\n\n\n\n<p>The output should be:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#nginx -t<br>\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok<br>nginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/pre>\n\n\n\n<p>If the configuration is OK, restart the Nginx service to get the latest changes.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart nginx<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-10-Install-Free-Lets-Encrypt-SSL-certificate\"><\/span>Step 10. Install Free Let&#8217;s Encrypt SSL certificate<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Next, you will need to install a free &#8216;Let&#8217;s Encrypt&#8217; SSL certificate. &#8216;Let&#8217;s Encrypt&#8217; is currently one of the most popular TLS encryption providers in the past few years. It is the world&#8217;s biggest certificate authority, otherwise used by over 250 million websites.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/installing-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-1024x640.jpg\" alt=\"installing gitea with nginx and free lets encrypt ssl on ubuntu 20.04\" class=\"wp-image-38606\" width=\"190\" height=\"119\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/installing-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-1024x640.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/installing-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-300x188.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/installing-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-150x94.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/installing-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-768x480.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/installing-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-1536x960.jpg 1536w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/installing-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-1320x825.jpg 1320w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/installing-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg 1600w\" sizes=\"(max-width: 190px) 100vw, 190px\" \/><\/figure><\/div>\n\n\n\n<p>First, you need to install Certbot software on the server with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt install certbot python3-certbot-nginx -y<\/pre>\n\n\n\n<p>Once, the Certbot is installed we are ready to install the certificate for the domain:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo certbot --nginx -d gitea.example.com<\/pre>\n\n\n\n<p>While installing you can choose the redirect option and all requests from HTTP will be redirected to HTTPS.<\/p>\n\n\n\n<p>After the successful installation the following similar message will be received:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">- Congratulations! Your certificate and chain have been saved at:<br>\/etc\/letsencrypt\/live\/gitea.example.com\/fullchain.pem<br>Your key file has been saved at:<br>\/etc\/letsencrypt\/live\/gitea.example.com\/privkey.pem<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"11-Access-the-Gitea-website-securely\"><\/span>11. Access the Gitea website securely<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Now when every step is completed we can access our Gitea website at https:\/\/gitea.example.com Enter the MySQL user password that you used to create in step 6. Scroll down on the bottom of the page and hit on the &#8220;<b>Install Gitea<\/b>&#8220;.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/set-up-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg\" alt=\"set up gitea with nginx and free lets encrypt ssl on ubuntu 20.04\" class=\"wp-image-38608\" width=\"223\" height=\"141\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/set-up-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg 820w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/set-up-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-300x190.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/set-up-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-150x95.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/set-up-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04-768x485.jpg 768w\" sizes=\"(max-width: 223px) 100vw, 223px\" \/><\/figure><\/div>\n\n\n\n<p>Congratulations! You successfully installed Gitea software and you can enjoy using it now. Of course, you can simply subscribe to any of our <a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Linux VPS hosting<\/a> plans and let our experts set up everything within minutes, completely free of charge.<\/p>\n\n\n\n<p>PS. If you liked this post on how to install Gitea on Nginx with Free Lets Encrypt SSL on Ubuntu 20.04, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to show you how to install the Gitea software on your VPS along with &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Gitea with NGINX and Free Let&#8217;s Encrypt SSL on Ubuntu 20.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#more-38573\" aria-label=\"Read more about How to Install Gitea with NGINX and Free Let&#8217;s Encrypt SSL on Ubuntu 20.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":38610,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[1819,1603,1632,49,1839],"class_list":["post-38573","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-gitea","tag-how-to-install","tag-lets-encrypt","tag-nginx","tag-ubuntu-20-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Gitea with NGINX and Free Let&#039;s Encrypt SSL on Ubuntu 20.04<\/title>\n<meta name=\"description\" content=\"In this tutorial, you will learn how to install Gitea with Nginx and a free &#039;Let&#039;s Encrypt&#039; SSL on Ubuntu 20.04.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Gitea with NGINX and Free Let&#039;s Encrypt SSL on Ubuntu 20.04\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, you will learn how to install Gitea with Nginx and a free &#039;Let&#039;s Encrypt&#039; SSL on Ubuntu 20.04.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-20T17:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:31:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg?v=1628844250\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Gitea with NGINX and Free Let&#039;s Encrypt SSL on Ubuntu 20.04\" \/>\n<meta name=\"twitter:description\" content=\"In this tutorial, you will learn how to install Gitea with Nginx and a free &#039;Let&#039;s Encrypt&#039; SSL on Ubuntu 20.04.\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Gitea with NGINX and Free Let&#8217;s Encrypt SSL on Ubuntu 20.04\",\"datePublished\":\"2021-09-20T17:30:00+00:00\",\"dateModified\":\"2022-06-03T08:31:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/\"},\"wordCount\":797,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg\",\"keywords\":[\"gitea\",\"how to install\",\"Let's Encrypt\",\"nginx\",\"Ubuntu 20.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/\",\"name\":\"How to Install Gitea with NGINX and Free Let's Encrypt SSL on Ubuntu 20.04\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg\",\"datePublished\":\"2021-09-20T17:30:00+00:00\",\"dateModified\":\"2022-06-03T08:31:32+00:00\",\"description\":\"In this tutorial, you will learn how to install Gitea with Nginx and a free 'Let's Encrypt' SSL on Ubuntu 20.04.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install gitea with nginx and free lets encrypt ssl on ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Gitea with NGINX and Free Let&#8217;s Encrypt SSL on Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Gitea with NGINX and Free Let's Encrypt SSL on Ubuntu 20.04","description":"In this tutorial, you will learn how to install Gitea with Nginx and a free 'Let's Encrypt' SSL on Ubuntu 20.04.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Gitea with NGINX and Free Let's Encrypt SSL on Ubuntu 20.04","og_description":"In this tutorial, you will learn how to install Gitea with Nginx and a free 'Let's Encrypt' SSL on Ubuntu 20.04.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2021-09-20T17:30:00+00:00","article_modified_time":"2022-06-03T08:31:32+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg?v=1628844250","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Gitea with NGINX and Free Let's Encrypt SSL on Ubuntu 20.04","twitter_description":"In this tutorial, you will learn how to install Gitea with Nginx and a free 'Let's Encrypt' SSL on Ubuntu 20.04.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Gitea with NGINX and Free Let&#8217;s Encrypt SSL on Ubuntu 20.04","datePublished":"2021-09-20T17:30:00+00:00","dateModified":"2022-06-03T08:31:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/"},"wordCount":797,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg","keywords":["gitea","how to install","Let's Encrypt","nginx","Ubuntu 20.04"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/","name":"How to Install Gitea with NGINX and Free Let's Encrypt SSL on Ubuntu 20.04","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg","datePublished":"2021-09-20T17:30:00+00:00","dateModified":"2022-06-03T08:31:32+00:00","description":"In this tutorial, you will learn how to install Gitea with Nginx and a free 'Let's Encrypt' SSL on Ubuntu 20.04.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/08\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20.04.jpg","width":742,"height":372,"caption":"how to install gitea with nginx and free lets encrypt ssl on ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-gitea-with-nginx-and-free-lets-encrypt-ssl-on-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Gitea with NGINX and Free Let&#8217;s Encrypt SSL on Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/38573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=38573"}],"version-history":[{"count":34,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/38573\/revisions"}],"predecessor-version":[{"id":38932,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/38573\/revisions\/38932"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/38610"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=38573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=38573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=38573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}