Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

nodejs proxy and reverse proxy with web admin

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Cakefile
Octocat-spinner-32 package.json
Octocat-spinner-32 readme.md
readme.md

Freeway

A reverse proxy webserver

Freeway has the following configuration settings that are stored in a couchdb document called settings.

{
  "default": "http://internal.server.com", // your internal servers or load balancers
  "tokens": ["foo", "bar", "baz"]
}

Any request that comes into the server without a token in the header that matches the configured tokens will bounce to the default server. Any request that comes into the server with a matching token will bounce to the host header in the request.

Install

npm install freeway -g

Usage

create config json file - config.json

{
  "datastore": "http://localhost:5984/freeway"
}
freeway 8080

Logging

All logs are currently going to stdout, if you use forever you can also configure this.

Something went wrong with that request. Please try again.