Skip to content

Instantly share code, notes, and snippets.

View raphaelbadia's full-sized avatar
😄

Raphaël Badia raphaelbadia

😄
View GitHub Profile
@raphaelbadia
raphaelbadia / jwtRS256.sh
Created September 30, 2022 09:55 — forked from Holger-Will/jwtRS256.sh
generate public private key pair (RSA RS256) for use with koa-jwt jasonwebtoken etc.
# generate private key
openssl genrsa -out private.pem 2048
# extatract public key from it
openssl rsa -in private.pem -pubout > public.pem
@raphaelbadia
raphaelbadia / node_nginx_ssl.md
Created April 25, 2020 05:51 — 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