blob: daec1a869d96d778aa7c4171b3e8a7793abc9d65 [file] [log] [blame]
Matteo Scandoloc80ccbd2017-02-27 16:24:33 -08001const httpProxy = require('http-proxy');
2
3const proxy = httpProxy.createProxyServer({
4 target: 'http://xos.dev:9101'
5});
6
7proxy.on('error', function(error, req, res) {
8 res.writeHead(500, {
9 'Content-Type': 'text/plain'
10 });
11 console.error('[Proxy]', error);
12});
13
14module.exports = proxy;