Skip to content

Instantly share code, notes, and snippets.

View emps's full-sized avatar

Karol emps

View GitHub Profile
git status
/it all begins here!
git remote show origin
/show current git project adress
git add .
add all new files to the commit you about to commit
git commit -m 'commit data try to be clear'
@emps
emps / Secure Sessions Howto
Created March 18, 2016 12:02 — forked from nikmartin/A: Secure Sessions Howto
Secure sessions with Node.js, Connect, and Nginx as an SSL Proxy
Secure sessions are easy, but it's not very well documented, so I'm changing that.
Here's a recipe for secure sessions in Node.js when NginX is used as an SSL proxy:
The desired configuration for using NginX as an SSL proxy is to offload SSL processing
and to put a hardened web server in front of your Node.js application, like:
[NODE.JS APP] <- HTTP -> [NginX] <- HTTPS -> [CLIENT]
To do this, here's what you need to do: