Saturday, March 18, 2023

Reverse Proxy with nodejs

https://github.com/http-party/node-http-proxy
npm install http-proxy --save
node .\server.js

var http = require('http'),
    httpProxy = require('http-proxy');
//
// Create your proxy server and set the target in the options.
//
httpProxy.createProxyServer({target:'http://localhost:10090'}).listen(8000);




No comments: