Adding proxy to config, and closing on error
This commit is contained in:
parent
c9a2014ac7
commit
a669538e70
|
@ -14,6 +14,10 @@ exports.serve = function(ipc, host, port, ws){
|
|||
ws: ws
|
||||
});
|
||||
|
||||
proxy.on('error', function (err, req, res) {
|
||||
proxy.close();
|
||||
});
|
||||
|
||||
proxy.on('proxyRes', (proxyRes) => {
|
||||
let resBody = [];
|
||||
proxyRes.on('data', (b) => resBody.push(b));
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
"rpcHost": "localhost",
|
||||
"rpcPort": 8545,
|
||||
"rpcCorsDomain": "auto",
|
||||
"proxy": true,
|
||||
"account": {
|
||||
"password": "config/development/password"
|
||||
},
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
"rpcHost": "localhost",
|
||||
"rpcPort": 8545,
|
||||
"rpcCorsDomain": "auto",
|
||||
"proxy": true,
|
||||
"account": {
|
||||
"password": "config/development/password"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue