@abtnode/router-provider 1.16.44-beta-20250513-030435-c2d99062 → 1.16.44-beta-20250518-020443-77ba168f
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
|
@@ -96,12 +96,16 @@ const checkDockerInstalled = async () => {
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
const clearDockerContainer = async () => {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
try {
|
|
100
|
+
// 判断 docker 是否执行了任何容器
|
|
101
|
+
const list = await promiseSpawn('docker ps -a -q --filter "name=^blocklet-"');
|
|
102
|
+
if (!list) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
await promiseSpawn('docker rm -f $(docker ps -a -q --filter "name=^blocklet-")');
|
|
106
|
+
} catch (e) {
|
|
107
|
+
logger.error(e);
|
|
103
108
|
}
|
|
104
|
-
await promiseSpawn('docker rm -f $(docker ps -a -q --filter "name=^blocklet-")');
|
|
105
109
|
};
|
|
106
110
|
|
|
107
111
|
module.exports = {
|
|
@@ -407,3 +407,13 @@ SecRule ARGS:redirect "@rx localhost|127\.0\.0\.1" \
|
|
|
407
407
|
pass,\
|
|
408
408
|
nolog,\
|
|
409
409
|
ctl:ruleRemoveByTag=attack-ssrf"
|
|
410
|
+
|
|
411
|
+
# Skip WAF for /ai-kit/ api
|
|
412
|
+
SecRule REQUEST_FILENAME "@contains /api/v1/chat" \
|
|
413
|
+
"id:1026,\
|
|
414
|
+
phase:1,\
|
|
415
|
+
pass,\
|
|
416
|
+
nolog,\
|
|
417
|
+
chain"
|
|
418
|
+
SecRule REQUEST_METHOD "@pm POST" \
|
|
419
|
+
"ctl:ruleEngine=Off"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/router-provider",
|
|
3
|
-
"version": "1.16.44-beta-
|
|
3
|
+
"version": "1.16.44-beta-20250518-020443-77ba168f",
|
|
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.44-beta-
|
|
36
|
-
"@abtnode/logger": "1.16.44-beta-
|
|
37
|
-
"@abtnode/router-templates": "1.16.44-beta-
|
|
38
|
-
"@abtnode/util": "1.16.44-beta-
|
|
35
|
+
"@abtnode/constant": "1.16.44-beta-20250518-020443-77ba168f",
|
|
36
|
+
"@abtnode/logger": "1.16.44-beta-20250518-020443-77ba168f",
|
|
37
|
+
"@abtnode/router-templates": "1.16.44-beta-20250518-020443-77ba168f",
|
|
38
|
+
"@abtnode/util": "1.16.44-beta-20250518-020443-77ba168f",
|
|
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": "8464d53e8d44b255afa6032e37d8d4ab7be76e67"
|
|
65
65
|
}
|