Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 969 Bytes

README.md

File metadata and controls

53 lines (33 loc) · 969 Bytes

useful

useful devops commands

Nginx

sudo apt-get -y install nginx

etc/nginx.conf

Remove:

sudo apt-get purge nginx nginx-common

Node

curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash - 
sudo apt-get install -y nodejs

Let's Encrypt

sudo apt-get update
sudo apt-get -y install software-properties-common
sudo add-apt-repository -y universe
sudo add-apt-repository -y ppa:certbot/certbot
sudo apt-get update

sudo apt-get -y install certbot python-certbot-nginx

Get certificate:

https://certbot.eff.org/docs/using.html#certbot-command-line-options

Will ask for an email. Optional: --email [email protected]
Will ask for domain. Optional: --domain domain.com
Make it non-interactive: -n

sudo certbot --nginx --agree-tos --redirect --email [email protected]

Node Deploy

etc/deploy.sh