You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`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.
5
8
6
9
## Installation
@@ -51,7 +54,7 @@ You can initialize a new `http-proxy-rules` instance with the following options:
51
54
```js
52
55
{
53
56
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
55
58
}
56
59
```
57
60
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