Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Minimalistic HTTP proxy server with config auto-reloading and static file serving.
JavaScript
branch: master
Failed to load latest commit information.
bin better static server
docs -d --daemon
lib better static server
.gitignore
.npmignore first commit
README.md Update README.md
example.json Update example.json
index.js revert accidental comment
package.json 0.0.6

README.md

deprecated

Please use boxcars instead of this. boxcars provides way better performance and more features.

door

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

Also checkout the rewrite of Door in Golang: boxcars

Install

$ npm install -g door

Usage

Create a configuration file:

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

And start the server on :8000:

$ door config.json

To change the port number:

$ door config.json -p 80

No need to restart the server after changes. It watches the config file for changes and updates its proxy table (if no error occurred) automatically.

Wanna run it as a daemon on the background?

$ door config.json -d

Something went wrong with that request. Please try again.