sudo apt-get update
sudo apt-get install nginx
sudo ufw app list // Show list the applications configurations
sudo ufw allow 'Nginx Full' // opens both port 80 (normal, unencrypted web traffic) and port 443 (TLS/SSL encrypted traffic)
sudo ufw status // Verify the change