@abtnode/router-provider 1.16.39-beta-20250218-132815-6baaf20e → 1.16.39-beta-20250220-073620-4f1d9e2b

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/index.js CHANGED
@@ -87,8 +87,8 @@ const clearRouterByConfigKeyword = async (keyword) => {
87
87
 
88
88
  const checkDockerInstalled = async () => {
89
89
  try {
90
- await promiseSpawn('docker --version');
91
- await promiseSpawn('docker ps -a');
90
+ await promiseSpawn('docker --version', { mute: true });
91
+ await promiseSpawn('docker ps -a', { mute: true });
92
92
  return true;
93
93
  } catch (_) {
94
94
  return false;
@@ -6,6 +6,11 @@ if ($http_accept ~ image/webp) {
6
6
  proxy_cache_key $scheme$proxy_host$uri$is_args$args$tmp_cache_key_webp;
7
7
  proxy_cache_bypass $cookie_nocache $arg_nocache;
8
8
  proxy_cache_lock on;
9
+ proxy_cache_lock_timeout 5s;
10
+ proxy_cache_lock_age 5s;
11
+ proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
12
+ proxy_cache_background_update on;
9
13
  proxy_cache_revalidate on;
14
+ proxy_cache_min_uses 1;
10
15
 
11
16
  add_header X-Cache-Status $upstream_cache_status;
@@ -5,12 +5,15 @@ proxy_send_timeout 3600;
5
5
  proxy_pass_header server;
6
6
 
7
7
  proxy_headers_hash_bucket_size 512;
8
- proxy_buffering off;
9
- proxy_buffer_size 10k;
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)
10
13
  proxy_next_upstream error timeout invalid_header;
11
14
  proxy_redirect off;
12
15
  proxy_http_version 1.1;
13
-
16
+ proxy_socket_keepalive on; # Enable keepalive
14
17
  proxy_ignore_client_abort off;
15
18
 
16
19
  proxy_set_header Host $host;
@@ -22,3 +25,5 @@ proxy_set_header Connection $connection_upgrade;
22
25
  proxy_set_header X-Forwarded-Proto $scheme;
23
26
  proxy_set_header X-Forwarded-Host $host;
24
27
  proxy_set_header X-Forwarded-Port $server_port;
28
+
29
+ proxy_hide_header X-Powered-By;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/router-provider",
3
- "version": "1.16.39-beta-20250218-132815-6baaf20e",
3
+ "version": "1.16.39-beta-20250220-073620-4f1d9e2b",
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.39-beta-20250218-132815-6baaf20e",
36
- "@abtnode/logger": "1.16.39-beta-20250218-132815-6baaf20e",
37
- "@abtnode/router-templates": "1.16.39-beta-20250218-132815-6baaf20e",
38
- "@abtnode/util": "1.16.39-beta-20250218-132815-6baaf20e",
35
+ "@abtnode/constant": "1.16.39-beta-20250220-073620-4f1d9e2b",
36
+ "@abtnode/logger": "1.16.39-beta-20250220-073620-4f1d9e2b",
37
+ "@abtnode/router-templates": "1.16.39-beta-20250220-073620-4f1d9e2b",
38
+ "@abtnode/util": "1.16.39-beta-20250220-073620-4f1d9e2b",
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": "731bfe1a4ad07e92bd9e28fa1627648fbf485326"
63
+ "gitHead": "d66051094d2821e602b699ba44c2b850b9484517"
64
64
  }