Skip to content

Instantly share code, notes, and snippets.

@mwdchang
Created October 17, 2017 15:37
Show Gist options
  • Save mwdchang/ebffb591eef4abc1096987d37c6574be to your computer and use it in GitHub Desktop.
Save mwdchang/ebffb591eef4abc1096987d37c6574be to your computer and use it in GitHub Desktop.
Simple node proxy server
const express = require('express')
const app = express()
const proxy = require('express-http-proxy')
app.use('/', proxy('proxy-destination.com'))
app.listen(3000, function () {
console.log('Example app listening on port 3000!')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment