door

Http proxy server with auto-reload and static file serving

Minimalistic HTTP proxy server with config auto-reloading and static file serving.

$ npm install -g door

Create a configuration file:

{
  "foo.com": "localhost:3001",
  "bar.net": "localhost:3002",
  "static.net": "/home/azer/sites/bar.net"
}

And start the server on :8000:

$ door config.json

To change the port number:

$ door config.json -p 80

It'll be watching changes on config.json and reloading the proxy table.