Skip to content

Instantly share code, notes, and snippets.

@Daivasmara
Last active December 16, 2020 09:52
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
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'
# 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