Skip to content

Commit 028b108

Browse files
committed
Added Travis CI badge
1 parent 24e9193 commit 028b108

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
http-proxy-rules
33
======
4+
5+
[![Build Status](https://travis-ci.org/donasaur/http-proxy-rules.svg?branch=master)](https://travis-ci.org/donasaur/http-proxy-rules)
6+
47
`http-proxy-rules` is an add-on module to the [node-http-proxy](https://github.com/nodejitsu/node-http-proxy) library. It lets you define a set of rules to translate matching routes to target routes that the reverse proxy service will talk to on the client's behalf.
58

69
## Installation
@@ -51,7 +54,7 @@ You can initialize a new `http-proxy-rules` instance with the following options:
5154
```js
5255
{
5356
rules: {}, // See notes below
54-
default: '' // (optional) if there are no matching rules, translate url path to the specified dfeualt
57+
default: '' // (optional) if no rules matched, translate url path to specified default
5558
}
5659
```
5760
The rules object contains a set of key-value pairs mapping a regex-supported url path to a target route. The target route must include the protocol (e.g., http) and the FQDN. See the [tests](test/index.tests.js) for examples of how incoming route url paths may be translated with the use of this module.

0 commit comments

Comments
 (0)