Skip to content

Instantly share code, notes, and snippets.

View hoangtran2's full-sized avatar
🇻🇳

Hoang Tran hoangtran2

🇻🇳
  • Enouvo IT Solutions
  • Da Nang - Viet Nam
  • 15:28 (UTC +07:00)
  • LinkedIn in/hoangtran2198
View GitHub Profile
@hoangtran2
hoangtran2 / node_nginx_ssl.md
Created April 23, 2020 15:26 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

Keybase proof

I hereby claim:

  • I am hoangtran2 on github.
  • I am hoangtran1 (https://keybase.io/hoangtran1) on keybase.
  • I have a public key ASCbMYa2nnZrbgNjiT8P1yev-TAWs-mIvmCjt454YGHmGAo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am hoangtran2 on github.
  • I am hoangtran2 (https://keybase.io/hoangtran2) on keybase.
  • I have a public key ASCXjDRMhiMT8bsZMtpsy73GfDef_Ejoro00prERjJFC9Qo

To claim this, I am signing this object: