Skip to content

Instantly share code, notes, and snippets.

@nicholasf
Created November 23, 2012 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasf/4137007 to your computer and use it in GitHub Desktop.
Save nicholasf/4137007 to your computer and use it in GitHub Desktop.
var router = {};
router['blah'] = 'localhost:9001';
router[front + '/service/registration'] = gatekeeper + '/s/moneytribe/register';
router[front + '/service/user_delete'] = gatekeeper + '/s/moneytribe/destroy';
router[front + '/service/profile_email'] = gatekeeper + '/s/users';
router[front + '/service/profile_username'] = gatekeeper + '/s/users';
router[front + '/service/recovery_password'] = gatekeeper + '/s/moneytribe/reset_password';
router[front + '/'] = tribes;
console.log( {port: env.server.gatekeeper.port, host: '/s/moneytribe/authenticate'});
// This listens on port 443 for incoming HTTP requests
// and proxies them to port 5010
httpProxy.createServer({
router: router
, https: {
key: fs.readFileSync('./certs/damien_moneytribe.com.au.key', 'utf-8')
, cert: fs.readFileSync('./certs/damien_wildcard.moneytribe.com.au.crt', 'utf-8')
}
}
).listen(3443);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment