Created
November 23, 2012 19:42
-
-
Save nicholasf/4137007 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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