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.
- Host: GitHub
- URL: https://github.com/azer/door
- Owner: azer
- Created: 2013-05-13T05:43:08.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-11-18T19:23:13.000Z (over 11 years ago)
- Last Synced: 2024-11-16T04:25:27.797Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 163 KB
- Stars: 47
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

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
```
