Skip to content

Instantly share code, notes, and snippets.

@vildzi
Created April 10, 2019 21:44
Show Gist options
  • Save vildzi/909f8655e431c05ba76bf110f165a90f to your computer and use it in GitHub Desktop.
Save vildzi/909f8655e431c05ba76bf110f165a90f to your computer and use it in GitHub Desktop.
apt-get update
apt-get install nginx npm software-properties-common
add-apt-repository universe
add-apt-repository ppa:certbot/certbot
apt-get update
apt-get install certbot python-certbot-apache
npm i -g pm2
pm2 startup
echo "Done, you can modify nginx config in /etc/nginx/sites-available/default and add certs using certbot -d <domain>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment