Skip to content

Instantly share code, notes, and snippets.

@toknT toknT/main.js
Created Oct 29, 2019

What would you like to do?
var httpProxy = require('http-proxy');
const rpcPort = process.env.RPC_PORT;
const exportPort = process.env.EXPORT_PORT;
httpProxy.createProxyServer({ target: `${rpcPort}` }).listen(exportPort);
"name": "rpc-proxy",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"author": "",
"license": "ISC",
"dependencies": {
"http-proxy": "^1.18.0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.