diff --git a/config/rest-gateway/rest.json.mustache b/config/rest-gateway/rest.json.mustache index 5cad2a28..f55d4881 100644 --- a/config/rest-gateway/rest.json.mustache +++ b/config/rest-gateway/rest.json.mustache @@ -79,5 +79,7 @@ "deploymentTool": "{{{restDeploymentTool}}}", "deploymentToolVersion": "{{{restDeploymentToolVersion}}}", "lastUpdatedDate": "{{{restDeploymentToolLastUpdatedDate}}}" - } + }, + + "nodeMetadata": {{{toJson restNodeMetadata}}} } diff --git a/presets/shared.yml b/presets/shared.yml index c91ae9d0..d2348864 100644 --- a/presets/shared.yml +++ b/presets/shared.yml @@ -227,6 +227,8 @@ restProtocol: HTTP restSSLPath: '/symbol-workdir' restSSLKeyFileName: 'restSSL.key' restSSLCertificateFileName: 'restSSL.crt' +restNodeMetadata: + _info: "Node metadata" statisticsServicePeerFilter: '' statisticsServicePeerLimit: 50 statisticsServiceRestFilter: suggested diff --git a/src/model/ConfigPreset.ts b/src/model/ConfigPreset.ts index b216e9e9..2b58b4a4 100644 --- a/src/model/ConfigPreset.ts +++ b/src/model/ConfigPreset.ts @@ -318,6 +318,7 @@ export interface GatewayConfigPreset { restProtocol: 'HTTPS' | 'HTTP'; restExtensions: string; restUncirculatingAccountPublicKeys: string; + restNodeMetadata: Map; restSSLPath: string; restSSLKeyFileName: string; restSSLCertificateFileName: string; diff --git a/test/reports/bootstrap-voting/rest-gateway-0-rest.json b/test/reports/bootstrap-voting/rest-gateway-0-rest.json index 95d36a8d..a9e576ba 100644 --- a/test/reports/bootstrap-voting/rest-gateway-0-rest.json +++ b/test/reports/bootstrap-voting/rest-gateway-0-rest.json @@ -92,5 +92,8 @@ "deploymentTool": "symbol-bootstrap", "deploymentToolVersion": "abc", "lastUpdatedDate": "2021-05-23" + }, + "nodeMetadata": { + "_info": "Node metadata" } } diff --git a/test/reports/custom-network-dual/rest-gateway-rest.json b/test/reports/custom-network-dual/rest-gateway-rest.json index 4f074981..e432b7ad 100644 --- a/test/reports/custom-network-dual/rest-gateway-rest.json +++ b/test/reports/custom-network-dual/rest-gateway-rest.json @@ -92,5 +92,8 @@ "deploymentTool": "symbol-bootstrap", "deploymentToolVersion": "abc", "lastUpdatedDate": "2021-05-23" + }, + "nodeMetadata": { + "_info": "Node metadata" } } diff --git a/test/reports/mainnet-dual-voting/rest-gateway-rest.json b/test/reports/mainnet-dual-voting/rest-gateway-rest.json index e1a16b7e..7452c1ce 100644 --- a/test/reports/mainnet-dual-voting/rest-gateway-rest.json +++ b/test/reports/mainnet-dual-voting/rest-gateway-rest.json @@ -97,5 +97,8 @@ "deploymentTool": "symbol-bootstrap", "deploymentToolVersion": "abc", "lastUpdatedDate": "2021-05-23" + }, + "nodeMetadata": { + "_info": "Node metadata" } } diff --git a/test/reports/mainnet-dual/rest-gateway-rest.json b/test/reports/mainnet-dual/rest-gateway-rest.json index e1a16b7e..7452c1ce 100644 --- a/test/reports/mainnet-dual/rest-gateway-rest.json +++ b/test/reports/mainnet-dual/rest-gateway-rest.json @@ -97,5 +97,8 @@ "deploymentTool": "symbol-bootstrap", "deploymentToolVersion": "abc", "lastUpdatedDate": "2021-05-23" + }, + "nodeMetadata": { + "_info": "Node metadata" } } diff --git a/test/reports/testnet-api/rest-gateway-rest.json b/test/reports/testnet-api/rest-gateway-rest.json index b3f76037..178122df 100644 --- a/test/reports/testnet-api/rest-gateway-rest.json +++ b/test/reports/testnet-api/rest-gateway-rest.json @@ -92,5 +92,8 @@ "deploymentTool": "symbol-bootstrap", "deploymentToolVersion": "ABC", "lastUpdatedDate": "2021-05-23" + }, + "nodeMetadata": { + "_info": "Node metadata" } } diff --git a/test/reports/testnet-dual-voting/rest-gateway-rest.json b/test/reports/testnet-dual-voting/rest-gateway-rest.json index fec93ee7..2867c706 100644 --- a/test/reports/testnet-dual-voting/rest-gateway-rest.json +++ b/test/reports/testnet-dual-voting/rest-gateway-rest.json @@ -92,5 +92,8 @@ "deploymentTool": "symbol-bootstrap", "deploymentToolVersion": "abc", "lastUpdatedDate": "2021-05-22" + }, + "nodeMetadata": { + "_info": "Node metadata" } }