1.0.0-alpha13 • Published 12 years ago

freeway v1.0.0-alpha13

Weekly downloads
42
License
-
Repository
github
Last release
12 years ago

Freeway

A 2-way proxy server

  • proxy server
  • reverse proxy server

About

Freeway uses a couchdb for its configuration setup, this couchdb can be configured by passing env params or by setting up a config.json file in the root of the application. The config takes two keys, (uri and db)

Example Config

{
  "datastore": {
    "uri": "http://localhost:5984",
    "db": "freeway"
  }
}

Once a connection is made, freeway is going to look for two documents in the database.

  1. opts
  2. rules

The opts document contains any options you would like to pass to bouncy, for example SSL info to configure as a ssl terminator.

The rules document contains keys that define how the system will bounce per host match.

When a request comes into freeway, freeway will examine the headers host key to match against a key in the rules document, if a match is found then it will grab the value object of that key, which contains the url and port to execute the bounce for.

Token Filter

Freeway has a feature that enables you to configure a token that can be validated to confirm that the proxy should perform the bounce. If the token key is not set, it will always bounce, if it is set then freeway will validate the token before bouncing.

Install

npm install freeway -g

Usage

create config json file - config.json

{
  "datastore": {
    "uri": "http://localhost:5984",
    "db": "freeway"
  }
}
freeway 8080
1.0.0-alpha13

12 years ago

1.0.0-alpha12

12 years ago

1.0.0-alpha11

12 years ago

1.0.0-alpha9

12 years ago

1.0.0-alpha8

12 years ago

1.0.0-alpha7

12 years ago

1.0.0-alpha6

12 years ago

1.0.0-alpha5

12 years ago

1.0.0-alpha4

12 years ago

1.0.0-alpha3

12 years ago

1.0.0-alpha2

12 years ago

1.0.0-alpha1

12 years ago

1.0.0-alpha

12 years ago