An open API service indexing awesome lists of open source software.

https://github.com/azer/door

Minimalistic HTTP proxy server with config auto-reloading and static file serving.
https://github.com/azer/door

Last synced: 11 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## deprecated

Please use [boxcars](http://github.com/azer/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.

![](https://dl.dropboxusercontent.com/s/h7h40tl3j56jqtx/door.png)

Also checkout the rewrite of Door in Golang: [boxcars](http://github.com/azer/boxcars)

## Install

```bash
$ npm install -g door
```

## Usage

Create a configuration file:

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

And start the server on `:8000`:

```bash
$ door config.json
```

To change the port number:

```bash
$ 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?

```bash
$ door config.json -d
```

![](https://dl.dropboxusercontent.com/s/lz5re7hq3qmc6wm/npmel_20.jpg)