Install SSL for Filerun on Ubuntu 22.04 with 3 very simple steps..
Table of Contents
Introduce
In the previous article, I showed you how to Install FileRun on Ubuntu 22.04, then to continue with the series about Filerun in this article, I will guide you to Install SSL for Filerun on Ubuntu 22.04 with 3 extremely simple steps. simple. Now let’s get started.
Installation Instructions
Step 1: Add the domain name to 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
sudo nano /etc/nginx/conf.d/default.conf
Find the line server_name and edit the following content:

- Check NGINX . configuration

sudo systemctl reload nginx
Now go to your domain to check. As shown, I have successfully configured Filerun access by domain name.

Step 2: Install Certbot Nginx
To install SSL for domain names, you can use Certbot to do that. Because with Certbot, the SSL installation is done automatically and they will configure themselves with the Nginx configuration without you needing to do anything else.
- Install Certbot Nginx
sudo apt install certbot python3-certbot-nginx -y
- Allow port 443 (HTTPS) through firewall
We will allow configuration Nginx Full through the firewall to be able to use both HTTP and HTTPS.
sudo ufw allow 'Nginx Full' sudo ufw status
If the result is displayed as shown below, it has been successfully added.

Step 3: Get an SSL certificate for the website
To install the SSL certificate for the website through certbotyou use the following command
sudo certbot --nginx -d filerun.azdigi.space
Note: Do you remember? filerun.azdigi.space with your domain name.
After running the above command, you will need to confirm some specific information as follows.
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): [email protected] (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
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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

You can refer to other user guides at the link below:
If you need assistance, you can contact support in the ways below: