@abtnode/router-provider 1.16.33-beta-20241011-054050-798b5f46 → 1.16.33-beta-20241014-122831-e6000fb8
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/nginx/index.js +1 -1
- package/lib/nginx/util.js +4 -2
- package/package.json +6 -6
package/lib/nginx/index.js
CHANGED
|
@@ -303,7 +303,7 @@ class NginxProvider extends BaseProvider {
|
|
|
303
303
|
const command = `${this.binPath} -t -c ${this.configPath} -p ${this.configDir}`; // eslint-disable-line no-param-reassign
|
|
304
304
|
const result = shelljs.exec(command, { silent: true });
|
|
305
305
|
if (result.code !== 0) {
|
|
306
|
-
logger.
|
|
306
|
+
logger.error(`exec ${command} error`, { errorMessage: result.stderr, code: result.code });
|
|
307
307
|
throw new Error(`${formatError(result.stderr)}`);
|
|
308
308
|
}
|
|
309
309
|
}
|
package/lib/nginx/util.js
CHANGED
|
@@ -213,9 +213,11 @@ http {
|
|
|
213
213
|
|
|
214
214
|
absolute_redirect off;
|
|
215
215
|
|
|
216
|
-
log_format compression '$remote_addr - $remote_user [$
|
|
216
|
+
log_format compression '$remote_addr - $remote_user [$time_iso8601] $request_id '
|
|
217
217
|
'"$host" "$request" $status $body_bytes_sent '
|
|
218
|
-
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for"
|
|
218
|
+
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for" '
|
|
219
|
+
'rt="$request_time" uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time" '
|
|
220
|
+
'uid="$cookie_connected_did" uos="$cookie_connected_wallet_os"';
|
|
219
221
|
access_log ${path.join(logDir, 'access.log')} compression;
|
|
220
222
|
error_log ${path.join(logDir, 'error.log')} error;
|
|
221
223
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/router-provider",
|
|
3
|
-
"version": "1.16.33-beta-
|
|
3
|
+
"version": "1.16.33-beta-20241014-122831-e6000fb8",
|
|
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.33-beta-
|
|
36
|
-
"@abtnode/logger": "1.16.33-beta-
|
|
37
|
-
"@abtnode/router-templates": "1.16.33-beta-
|
|
38
|
-
"@abtnode/util": "1.16.33-beta-
|
|
35
|
+
"@abtnode/constant": "1.16.33-beta-20241014-122831-e6000fb8",
|
|
36
|
+
"@abtnode/logger": "1.16.33-beta-20241014-122831-e6000fb8",
|
|
37
|
+
"@abtnode/router-templates": "1.16.33-beta-20241014-122831-e6000fb8",
|
|
38
|
+
"@abtnode/util": "1.16.33-beta-20241014-122831-e6000fb8",
|
|
39
39
|
"@arcblock/http-proxy": "^1.19.1",
|
|
40
40
|
"@arcblock/is-valid-domain": "^1.0.5",
|
|
41
41
|
"axios": "^1.7.5",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"bluebird": "^3.7.2",
|
|
60
60
|
"fs-extra": "^11.2.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "e0c74418f9349b237c189e8d7546dccd71309a38"
|
|
63
63
|
}
|