@abtnode/router-provider 1.16.43-beta-20250429-130236-269254ff → 1.16.43-beta-20250430-225854-7914dfe4

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.
@@ -389,3 +389,13 @@ SecRule REQUEST_FILENAME "@endsWith /api/comments" \
389
389
  chain"
390
390
  SecRule REQUEST_METHOD "@pm POST" \
391
391
  "ctl:ruleRemoveById=921110"
392
+
393
+ # Fix: pages-kit component false positive
394
+ SecRule REQUEST_FILENAME "@endsWith /api/components/preload" \
395
+ "id:1024,\
396
+ phase:1,\
397
+ pass,\
398
+ nolog,\
399
+ chain"
400
+ SecRule REQUEST_METHOD "@pm POST" \
401
+ "ctl:ruleEngine=Off"
@@ -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
- if (requestLimit && requestLimit.enabled) {
212
+
213
+ if (requestLimit) {
213
214
  this.requestLimit = requestLimit;
214
215
  this.addRequestLimiting(conf.nginx.http, requestLimit);
215
216
  }
216
- if (blockPolicy && blockPolicy?.enabled) {
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-20250429-130236-269254ff",
3
+ "version": "1.16.43-beta-20250430-225854-7914dfe4",
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-20250429-130236-269254ff",
36
- "@abtnode/logger": "1.16.43-beta-20250429-130236-269254ff",
37
- "@abtnode/router-templates": "1.16.43-beta-20250429-130236-269254ff",
38
- "@abtnode/util": "1.16.43-beta-20250429-130236-269254ff",
35
+ "@abtnode/constant": "1.16.43-beta-20250430-225854-7914dfe4",
36
+ "@abtnode/logger": "1.16.43-beta-20250430-225854-7914dfe4",
37
+ "@abtnode/router-templates": "1.16.43-beta-20250430-225854-7914dfe4",
38
+ "@abtnode/util": "1.16.43-beta-20250430-225854-7914dfe4",
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": "0826633a53695ac92965f8993e46985259adb65f"
64
+ "gitHead": "469f36a58a5906577fe86c5959887e3a0d6f9113"
65
65
  }