blob: 6a7e8b02ec1671a2d690e1798f17142519ec79a9 [file] [log] [blame]
const httpProxy = require('http-proxy');
const proxy = httpProxy.createProxyServer({
target: 'http://192.168.46.100:9101'
});
proxy.on('error', function(error, req, res) {
res.writeHead(500, {
'Content-Type': 'text/plain'
});
console.error('[Proxy]', error);
});
module.exports = proxy;