Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo apt update | |
sudo apt upgrade -y | |
sudo reboot | |
sudo ufw enable && sudo ufw allow ssh | |
sudo apt install nginx | |
sudo ufw allow 'Nginx HTTP' | |
sudo ufw allow 'Nginx HTTPS' | |
# https://certbot.eff.org/ | |
sudo certbot --nginx -d <domain.tld> | |
sudo nginx -t && sudo nginx -s reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment