Check the system requirements before installation.
Before starting the installation process, make sure your domain nameservers/DNS are configured. Otherwise, you would not be able to access to the website.
Learn how to configure your domain nameservers/DNS here.
If you are using Cloudflare, you do not need to create an SSL certificate, so you need to reverse proxy over port 80. If you are not using Cloudflare, you will need to create an SSL certificate using Certbot and reverse proxy over port 443.
If you are using Cloudflare:
sudo nano /etc/nginx/sites-enabled/YOURDOMAIN.COM
hostname -I | awk '{print $1}'
If you are not using Cloudflare:
sudo apt update -y
sudo apt install -y certbot
sudo apt install -y python3-certbot-nginx
certbot certonly --nginx -d YOURDOMAIN.COM
sudo crontab -e
and add the line from below to the bottom of it for attempting renewal every day.0 23 * * * certbot renew --quiet --deploy-hook "systemctl restart nginx"
sudo nano /etc/nginx/sites-enabled/YOURDOMAIN.COM
hostname -I | awk '{print $1}'
Check the system requirements before installation.
Before starting the installation process, make sure your domain nameservers/DNS are configured. Otherwise, you would not be able to access to the website.
Learn how to configure your domain nameservers/DNS here.
If you are using Cloudflare, you do not need to create an SSL certificate, so you need to reverse proxy over port 80. If you are not using Cloudflare, you will need to create an SSL certificate using Certbot and reverse proxy over port 443.
If you are using Cloudflare:
sudo nano /etc/nginx/sites-enabled/YOURDOMAIN.COM
hostname -I | awk '{print $1}'
If you are not using Cloudflare:
sudo apt update -y
sudo apt install -y certbot
sudo apt install -y python3-certbot-nginx
certbot certonly --nginx -d YOURDOMAIN.COM
sudo crontab -e
and add the line from below to the bottom of it for attempting renewal every day.0 23 * * * certbot renew --quiet --deploy-hook "systemctl restart nginx"
sudo nano /etc/nginx/sites-enabled/YOURDOMAIN.COM
hostname -I | awk '{print $1}'