node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »



A reverse proxy webserver

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

  "default": "", // 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.


npm install freeway -g


create config json file - config.json

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


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