@abtnode/router-provider 1.16.43-beta-20250429-130236-269254ff → 1.16.43-beta-20250430-124448-4edc5502
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/lib/nginx/index.js +6 -3
- package/package.json +6 -6
package/lib/nginx/index.js
CHANGED
|
@@ -209,12 +209,15 @@ class NginxProvider extends BaseProvider {
|
|
|
209
209
|
conf.nginx.http._add('server_tokens', 'off');
|
|
210
210
|
this._addCommonResHeaders(conf.nginx.http, commonHeaders);
|
|
211
211
|
this._addExposeServices(conf, services);
|
|
212
|
-
|
|
212
|
+
|
|
213
|
+
if (requestLimit) {
|
|
213
214
|
this.requestLimit = requestLimit;
|
|
214
215
|
this.addRequestLimiting(conf.nginx.http, requestLimit);
|
|
215
216
|
}
|
|
216
|
-
if (blockPolicy
|
|
217
|
-
this.updateBlacklist(blockPolicy.blacklist);
|
|
217
|
+
if (blockPolicy) {
|
|
218
|
+
this.updateBlacklist(blockPolicy.enabled ? blockPolicy.blacklist : []);
|
|
219
|
+
} else {
|
|
220
|
+
this.updateBlacklist([]);
|
|
218
221
|
}
|
|
219
222
|
this.updateProxyPolicy(proxyPolicy);
|
|
220
223
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/router-provider",
|
|
3
|
-
"version": "1.16.43-beta-
|
|
3
|
+
"version": "1.16.43-beta-20250430-124448-4edc5502",
|
|
4
4
|
"description": "Routing engine implementations for abt node",
|
|
5
5
|
"author": "polunzh <polunzh@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@abtnode/constant": "1.16.43-beta-
|
|
36
|
-
"@abtnode/logger": "1.16.43-beta-
|
|
37
|
-
"@abtnode/router-templates": "1.16.43-beta-
|
|
38
|
-
"@abtnode/util": "1.16.43-beta-
|
|
35
|
+
"@abtnode/constant": "1.16.43-beta-20250430-124448-4edc5502",
|
|
36
|
+
"@abtnode/logger": "1.16.43-beta-20250430-124448-4edc5502",
|
|
37
|
+
"@abtnode/router-templates": "1.16.43-beta-20250430-124448-4edc5502",
|
|
38
|
+
"@abtnode/util": "1.16.43-beta-20250430-124448-4edc5502",
|
|
39
39
|
"@arcblock/http-proxy": "^1.19.1",
|
|
40
40
|
"@arcblock/is-valid-domain": "^1.0.5",
|
|
41
41
|
"axios": "^1.7.9",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"bluebird": "^3.7.2",
|
|
62
62
|
"fs-extra": "^11.2.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "9b59264b5dc2c9450161be5a0ee4cdb981687cd7"
|
|
65
65
|
}
|