@abtnode/router-provider 1.16.42-beta-20250412-084444-20b0cf19 → 1.16.42-beta-20250415-222652-04c5d2fe

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.
@@ -6,10 +6,10 @@ proxy_pass_header server;
6
6
 
7
7
  proxy_headers_hash_bucket_size 512;
8
8
  proxy_buffering on;
9
- proxy_request_buffering on; # Buffer client requests
10
- proxy_buffers 32 32k; # Increased to 32 buffers of 32k = 1MB total
11
- proxy_buffer_size 32k; # Increased for larger headers
12
- proxy_busy_buffers_size 96k; # 2-3 buffers worth (32k * 3)
9
+ proxy_request_buffering off; # Buffer client requests
10
+ proxy_buffers 16 16k; # Smaller buffers for memory efficiency
11
+ proxy_buffer_size 16k; # Smaller buffer size
12
+ proxy_busy_buffers_size 48k; # Adjusted accordingly
13
13
  proxy_next_upstream error timeout invalid_header;
14
14
  proxy_redirect off;
15
15
  proxy_http_version 1.1;
@@ -239,14 +239,15 @@ SecRule REQUEST_HEADERS:tus-resumable "@rx ^1\.0\.0$" \
239
239
  ctl:ruleRemoveById=920420"
240
240
 
241
241
  # Fix: did space connect and restore false positive
242
- SecRule REQUEST_FILENAME "@rx (?:/connect-to-did-space|/restore)$" \
242
+ SecRule REQUEST_FILENAME "@rx (?:/connect-to-did-space|/one-click-authorization|/restore)" \
243
243
  "id:1009,\
244
244
  phase:1,\
245
245
  pass,\
246
246
  nolog,\
247
247
  chain"
248
248
  SecRule REQUEST_METHOD "@pm GET" \
249
- "ctl:ruleRemoveById=934110"
249
+ "ctl:ruleRemoveById=934110,\
250
+ ctl:ruleRemoveById=931120"
250
251
 
251
252
  # Fix: did wallet backup false positive
252
253
  SecRule REQUEST_FILENAME "@endsWith /app-records.txt" \
@@ -344,3 +345,13 @@ SecRule REQUEST_FILENAME "@beginsWith /api" \
344
345
  chain"
345
346
  SecRule REQUEST_METHOD "@pm POST" \
346
347
  "ctl:ruleRemoveByTag=attack-rce"
348
+
349
+ # Allow localhost and 127.0.0.1 in redirect_uri for OAuth
350
+ SecRule REQUEST_FILENAME "@contains /.well-known/service/oauth" \
351
+ "id:1019,\
352
+ phase:1,\
353
+ pass,\
354
+ nolog,\
355
+ chain"
356
+ SecRule REQUEST_METHOD "@pm GET POST" \
357
+ "ctl:ruleRemoveById=934110"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/router-provider",
3
- "version": "1.16.42-beta-20250412-084444-20b0cf19",
3
+ "version": "1.16.42-beta-20250415-222652-04c5d2fe",
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.42-beta-20250412-084444-20b0cf19",
36
- "@abtnode/logger": "1.16.42-beta-20250412-084444-20b0cf19",
37
- "@abtnode/router-templates": "1.16.42-beta-20250412-084444-20b0cf19",
38
- "@abtnode/util": "1.16.42-beta-20250412-084444-20b0cf19",
35
+ "@abtnode/constant": "1.16.42-beta-20250415-222652-04c5d2fe",
36
+ "@abtnode/logger": "1.16.42-beta-20250415-222652-04c5d2fe",
37
+ "@abtnode/router-templates": "1.16.42-beta-20250415-222652-04c5d2fe",
38
+ "@abtnode/util": "1.16.42-beta-20250415-222652-04c5d2fe",
39
39
  "@arcblock/http-proxy": "^1.19.1",
40
40
  "@arcblock/is-valid-domain": "^1.0.5",
41
41
  "axios": "^1.7.9",
@@ -60,5 +60,5 @@
60
60
  "bluebird": "^3.7.2",
61
61
  "fs-extra": "^11.2.0"
62
62
  },
63
- "gitHead": "39162da666c4968344db44fc26c0b76bdf6193db"
63
+ "gitHead": "4458b1e7e92d62d93c70de7f636a0f6ae9a59f26"
64
64
  }