Skip to content

ctbuh/useful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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@email.com
Will ask for domain. Optional: --domain domain.com
Make it non-interactive: -n

sudo certbot --nginx --agree-tos --redirect --email technology@ctbuh.org

Node Deploy

etc/deploy.sh

Releases

No releases published

Packages

No packages published

Languages