We will install some necessary packages to our linux machine in order to host a reverse proxy domain and generate SSL certificates.
Note that these steps are for Ubuntu 20.04, if you are using another distribution, you will need to install the packages in a different way.
* I will provide a very straightforward guide to install Nginx and Certbot, and how to configure them, if you are getting errors or need more information, please refer to their official documentation.
These packages comes with Pterodactyl as part of its installation, if you are using Pterodactyl you can skip until step X
1. Install Nginx
$ sudo apt update; sudo apt install nginx
$ sudo ufw allow 'Nginx Full'
$ sudo systemctl restart nginx
$ sudo apt update; sudo apt install certbot python3-certbot-nginx
$ sudo certbot --nginx -d example.com -d www.example.com
$ sudo certbot renew --dry-run