reverse-proxy-middleware 0.0.47 → 0.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -1
- package/readme.md +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reverse-proxy-middleware",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.49",
|
|
4
4
|
"description": "A reverse proxy blocking bot requests.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"postversion": "yarn publish --non-interactive; git push --tags && git push",
|
|
48
48
|
"prepare": "yarn build",
|
|
49
49
|
"serve": "yarn build:plain && yarn start",
|
|
50
|
+
"serve:simple": "ln --force --symbolic examples/simple.json configuration.json && yarn serve",
|
|
50
51
|
"start": "./index.js",
|
|
51
52
|
"test": "weboptimizer test",
|
|
52
53
|
"test:coverage": "weboptimizer test:coverage",
|
package/readme.md
CHANGED
|
@@ -39,6 +39,19 @@ forwarded requests.
|
|
|
39
39
|
|
|
40
40
|
### Quick start
|
|
41
41
|
|
|
42
|
+
Simple reverse proxy request from `http://localhost:8080` to
|
|
43
|
+
`https://www.google.com` without modifying the entire request.
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
{
|
|
47
|
+
"forwarders": {
|
|
48
|
+
"google": {
|
|
49
|
+
"host": "google.com"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
42
55
|
To configure the middleware for providing a bot-filtering mechanism add a
|
|
43
56
|
`configure.json` file and mount them into a docker container.
|
|
44
57
|
|