Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu 18.04
#! /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'
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