@blocklet/cli 1.16.45-beta-20250618-073451-6e48fb62 → 1.16.45-beta-20250624-134945-a23c15fc
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/commands/server/init.js +2 -0
- package/lib/commands/server/start.js +12 -2
- package/package.json +16 -16
|
@@ -383,6 +383,8 @@ exports.run = async ({
|
|
|
383
383
|
httpsPort: +httpsPort,
|
|
384
384
|
wildcardCertHost: wildcardCertHost.trim(),
|
|
385
385
|
ipWildcardDomain: ipWildcardDomain.trim(),
|
|
386
|
+
enableDefaultServer: false,
|
|
387
|
+
enableIpServer: false,
|
|
386
388
|
},
|
|
387
389
|
runtimeConfig: {
|
|
388
390
|
daemonMaxMemoryLimit: Math.floor(daemonMaxMemoryLimit * 1024),
|
|
@@ -145,6 +145,8 @@ const getDifferentAttributes = (dbInfo, config) => {
|
|
|
145
145
|
{ name: 'routing.provider', type: null, required: false },
|
|
146
146
|
{ name: 'routing.httpPort', type: Number, required: false },
|
|
147
147
|
{ name: 'routing.httpsPort', type: Number, required: false },
|
|
148
|
+
{ name: 'routing.enableDefaultServer', type: Boolean, required: false },
|
|
149
|
+
{ name: 'routing.enableIpServer', type: Boolean, required: false },
|
|
148
150
|
{ name: 'mode', type: String, required: false },
|
|
149
151
|
// { name: 'runtimeConfig.daemonMaxMemoryLimit', type: Number, required: false },
|
|
150
152
|
{ name: 'runtimeConfig.proxyMaxMemoryLimit', type: Number, required: false },
|
|
@@ -160,9 +162,15 @@ const getDifferentAttributes = (dbInfo, config) => {
|
|
|
160
162
|
attributes.forEach(({ name, type, required }) => {
|
|
161
163
|
let dbValue = get(dbInfo, name);
|
|
162
164
|
let configValue = get(config.node, name);
|
|
165
|
+
|
|
163
166
|
if (typeof type === 'function') {
|
|
164
|
-
|
|
165
|
-
|
|
167
|
+
if (typeof configValue !== 'undefined') {
|
|
168
|
+
configValue = type(configValue);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (typeof dbValue !== 'undefined') {
|
|
172
|
+
dbValue = type(dbValue);
|
|
173
|
+
}
|
|
166
174
|
}
|
|
167
175
|
|
|
168
176
|
let hasChanged = false;
|
|
@@ -505,6 +513,8 @@ const exec = async ({ workingDir, config, dataDir, mode, updateDb, forceIntranet
|
|
|
505
513
|
maxUploadFileSize: latest.node.routing.maxUploadFileSize,
|
|
506
514
|
httpPort: latest.node.routing.httpPort,
|
|
507
515
|
httpsPort: latest.node.routing.httpsPort,
|
|
516
|
+
enableDefaultServer: latest.node.routing.enableDefaultServer,
|
|
517
|
+
enableIpServer: latest.node.routing.enableIpServer,
|
|
508
518
|
}),
|
|
509
519
|
mode: latest.node.mode,
|
|
510
520
|
didRegistry: latest.node.didRegistry,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/cli",
|
|
3
|
-
"version": "1.16.45-beta-
|
|
3
|
+
"version": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
4
4
|
"description": "Command line tools to manage Blocklet Server",
|
|
5
5
|
"homepage": "https://github.com/ArcBlock/blocklet-server#readme",
|
|
6
6
|
"bin": {
|
|
@@ -35,27 +35,27 @@
|
|
|
35
35
|
"url": "https://github.com/ArcBlock/blocklet-server/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@abtnode/blocklet-services": "1.16.45-beta-
|
|
39
|
-
"@abtnode/client": "1.16.45-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.45-beta-
|
|
41
|
-
"@abtnode/core": "1.16.45-beta-
|
|
42
|
-
"@abtnode/db-cache": "1.16.45-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.45-beta-
|
|
44
|
-
"@abtnode/router-provider": "1.16.45-beta-
|
|
45
|
-
"@abtnode/util": "1.16.45-beta-
|
|
46
|
-
"@abtnode/webapp": "1.16.45-beta-
|
|
38
|
+
"@abtnode/blocklet-services": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
39
|
+
"@abtnode/client": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
40
|
+
"@abtnode/constant": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
41
|
+
"@abtnode/core": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
42
|
+
"@abtnode/db-cache": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
43
|
+
"@abtnode/logger": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
44
|
+
"@abtnode/router-provider": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
45
|
+
"@abtnode/util": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
46
|
+
"@abtnode/webapp": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
47
47
|
"@arcblock/did": "1.20.14",
|
|
48
48
|
"@arcblock/event-hub": "1.20.14",
|
|
49
49
|
"@arcblock/ipfs-only-hash": "^0.0.2",
|
|
50
50
|
"@arcblock/jwt": "1.20.14",
|
|
51
51
|
"@arcblock/ws": "1.20.14",
|
|
52
|
-
"@blocklet/constant": "1.16.45-beta-
|
|
52
|
+
"@blocklet/constant": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
53
53
|
"@blocklet/error": "^0.2.5",
|
|
54
54
|
"@blocklet/form-collector": "^0.1.8",
|
|
55
|
-
"@blocklet/images": "1.16.45-beta-
|
|
56
|
-
"@blocklet/meta": "1.16.45-beta-
|
|
57
|
-
"@blocklet/resolver": "1.16.45-beta-
|
|
58
|
-
"@blocklet/store": "1.16.45-beta-
|
|
55
|
+
"@blocklet/images": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
56
|
+
"@blocklet/meta": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
57
|
+
"@blocklet/resolver": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
58
|
+
"@blocklet/store": "1.16.45-beta-20250624-134945-a23c15fc",
|
|
59
59
|
"@blocklet/theme-builder": "^0.1.23",
|
|
60
60
|
"@ocap/client": "1.20.14",
|
|
61
61
|
"@ocap/mcrypto": "1.20.14",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"engines": {
|
|
154
154
|
"node": ">=14"
|
|
155
155
|
},
|
|
156
|
-
"gitHead": "
|
|
156
|
+
"gitHead": "3b56a1dbe3fea9df0d6b644a1821afae9b376ee8",
|
|
157
157
|
"devDependencies": {
|
|
158
158
|
"@types/fs-extra": "^11.0.4",
|
|
159
159
|
"@types/jest": "^29.5.13"
|