Skip to content

Instantly share code, notes, and snippets.

@gernotger
gernotger / proxy.js
Created June 21, 2011 20:51
simple Loadbalanger for NodeJS using node-http-proxy module
var fs = require('fs'),
http = require('http'),
https = require('https'),
httpProxy = require('http-proxy');
var options = {
https: {
key: fs.readFileSync('key.pem', 'utf8'),
cert: fs.readFileSync('cert.pem', 'utf8')
}