/*
This script runs a reverse proxy on http://localhost:9090/ to the actual backend http://localhost:8000/aws-mock/ec2-endpoint/
*/

'use strict';

var httpProxy = require('http-proxy'),
options = {
    router: {
        'localhost/': 'http://localhost:8000/aws-mock/ec2-endpoint/'
    }
},
proxyServer = httpProxy.createServer(options);

proxyServer.listen(9090);
console.log("Proxy running on http://localhost:9090/");


/*
This script runs a reverse proxy on http://localhost:9090/ to the actual backend http://localhost:8000/aws-mock/ec2-endpoint/
*/

'use strict';

var httpProxy = require('http-proxy'),
options = {
    router: {
        'localhost/': 'http://localhost:8001/aws-mock/ec2-endpoint/'
    }
},
proxyServer = httpProxy.createServer(options);

proxyServer.listen(9090);
console.log("Proxy running on http://localhost:9090/");


Use 8001 port instead of 8000 to be reverse proxied over 9090
Use 8001 port instead of 8000 to be reverse proxied over 9090
