Created
October 17, 2017 15:37
-
-
Save mwdchang/ebffb591eef4abc1096987d37c6574be to your computer and use it in GitHub Desktop.
Simple node proxy server
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
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