sudo apt install nginx
sudo nano /etc/nginx/sites-available/server-name
sudo ln -s /etc/nginx/sites-available/server-name /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
sudo apt install python3-certbot-nginx
sudo certbot --nginx -d domain-name