Home Linux ServerTools How to install SSL for Filerun on Ubuntu 22.04

How to install SSL for Filerun on Ubuntu 22.04

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

Installing SSL for Filerun on Ubuntu 22.04 with 3 steps.

Introduction

In the previous article, AZDIGI showed you how to install FileRun on Ubuntu 22.04, continue with the series about Filerun; in this article, AZDIGI will guide you to install SSL for Filerun on Ubuntu 22.04 with 3 extremely simple steps. Now let’s get started.

Implementation Guide

Step 1: Add the domain name to the Nginx configuration

Note: You need to point the domain name to the server IP.

  • First, you need to adjust the Nginx configuration file with the command:
AZDIGI Tutorial
sudo nano /etc/nginx/conf.d/default.conf
    

Next, find the server_name line and edit the following content:

How to install SSL for Filerun on Ubuntu 22.04
  • Check Nginx configuration
AZDIGI Tutorial
sudo nginx -t
    
How to install SSL for Filerun on Ubuntu 22.04
  • Reload Nginx
AZDIGI Tutorial
sudo systemctl reload nginx
    

Now go to your domain to check. As shown below, I have configured Filerun access by domain name successfully.

How to install SSL for Filerun on Ubuntu 22.04

Step 2: Install Certbot Nginx

To install SSL for domain names, you can use Certbot. With Certbot, the SSL installation is done automatically and will configure itself with the Nginx configuration without you needing to do anything else.

  • Install Certbot Nginx
AZDIGI Tutorial
sudo apt install certbot python3-certbot-nginx -y
    
  • Allow port 443 (HTTPS) through the firewall

We will allow Nginx Full configuration through the firewall to be able to use both HTTP and HTTPS.

AZDIGI Tutorial
sudo ufw allow 'Nginx Full'
sudo ufw status
    

If the result is displayed as shown below, it has been successfully added.

How to install SSL for Filerun on Ubuntu 22.04

Step 3: Get an SSL certificate for the website

To install the SSL certificate for the website via certbot, use the following command:

AZDIGI Tutorial
sudo certbot --nginx -d filerun.azdigi.space
    

Note: Remember to replace filerun.azdigi.space with your domain name.

After running the above command, you will need to confirm some of the following specific information.

root@ubuntu-2204:/etc/nginx/conf.d# sudo certbot --nginx -d filerun.azdigi.space
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
 (Enter 'c' to cancel): kiendt@azdigi.com              (Nhập email của bạn)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: y               (Nhấn y để đồng ý các điều khoản)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: n              (Nhận các thông tin khác từ Let's Encrypt)
Account registered.
Requesting a certificate for filerun.azdigi.space

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/filerun.azdigi.space/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/filerun.azdigi.space/privkey.pem
This certificate expires on 2022-08-17.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.

Deploying certificate
Successfully deployed certificate for filerun.azdigi.space to /etc/nginx/conf.d/default.conf
Congratulations! You have successfully enabled HTTPS on https://filerun.azdigi.space

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
How to install SSL for Filerun on Ubuntu 22.04

So I have successfully installed SSL for my domain, now we will go to the browser and access the domain name to check. As shown below, I have successfully accessed FIlerun with the domain name configured with SSL.

How to install SSL for Filerun on Ubuntu 22.04

You can refer to other instructions at the link below:

If you need support, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign