Skip to content

Instantly share code, notes, and snippets.

View ZengineChris's full-sized avatar
🏠
Working from home

Christian Bartelt ZengineChris

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@ZengineChris
ZengineChris / nginx.conf
Created January 6, 2016 22:18 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@ZengineChris
ZengineChris / app.js
Last active August 29, 2015 14:16
Fix a error for the use of the http-proxy and the body parser for express. Without the "connect-restreamer" the post request is not piped correct to the proxy. Add the "connect-restreamer" as middleware behind the body parser fix the issue.
var express = require('express');
var bodyParser = require('body-parser');
var httpProxy = require('http-proxy');
var app = express();
/* create a proxy server */
var proxy = httpProxy.createProxyServer({});
/* proxy the hole /example path */
a test gist