Skip to content

Commit

Permalink
[bootstrap] task: add option to configure node metadata (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoBeliever authored May 22, 2023
1 parent b1d907f commit 506ac79
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/rest-gateway/rest.json.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,7 @@
"deploymentTool": "{{{restDeploymentTool}}}",
"deploymentToolVersion": "{{{restDeploymentToolVersion}}}",
"lastUpdatedDate": "{{{restDeploymentToolLastUpdatedDate}}}"
}
},

"nodeMetadata": {{{toJson restNodeMetadata}}}
}
2 changes: 2 additions & 0 deletions presets/shared.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ restProtocol: HTTP
restSSLPath: '/symbol-workdir'
restSSLKeyFileName: 'restSSL.key'
restSSLCertificateFileName: 'restSSL.crt'
restNodeMetadata:
_info: "Node metadata"
statisticsServicePeerFilter: ''
statisticsServicePeerLimit: 50
statisticsServiceRestFilter: suggested
Expand Down
1 change: 1 addition & 0 deletions src/model/ConfigPreset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ export interface GatewayConfigPreset {
restProtocol: 'HTTPS' | 'HTTP';
restExtensions: string;
restUncirculatingAccountPublicKeys: string;
restNodeMetadata: Map<string, any>;
restSSLPath: string;
restSSLKeyFileName: string;
restSSLCertificateFileName: string;
Expand Down
3 changes: 3 additions & 0 deletions test/reports/bootstrap-voting/rest-gateway-0-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@
"deploymentTool": "symbol-bootstrap",
"deploymentToolVersion": "abc",
"lastUpdatedDate": "2021-05-23"
},
"nodeMetadata": {
"_info": "Node metadata"
}
}
3 changes: 3 additions & 0 deletions test/reports/custom-network-dual/rest-gateway-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@
"deploymentTool": "symbol-bootstrap",
"deploymentToolVersion": "abc",
"lastUpdatedDate": "2021-05-23"
},
"nodeMetadata": {
"_info": "Node metadata"
}
}
3 changes: 3 additions & 0 deletions test/reports/mainnet-dual-voting/rest-gateway-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,8 @@
"deploymentTool": "symbol-bootstrap",
"deploymentToolVersion": "abc",
"lastUpdatedDate": "2021-05-23"
},
"nodeMetadata": {
"_info": "Node metadata"
}
}
3 changes: 3 additions & 0 deletions test/reports/mainnet-dual/rest-gateway-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,8 @@
"deploymentTool": "symbol-bootstrap",
"deploymentToolVersion": "abc",
"lastUpdatedDate": "2021-05-23"
},
"nodeMetadata": {
"_info": "Node metadata"
}
}
3 changes: 3 additions & 0 deletions test/reports/testnet-api/rest-gateway-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@
"deploymentTool": "symbol-bootstrap",
"deploymentToolVersion": "ABC",
"lastUpdatedDate": "2021-05-23"
},
"nodeMetadata": {
"_info": "Node metadata"
}
}
3 changes: 3 additions & 0 deletions test/reports/testnet-dual-voting/rest-gateway-rest.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@
"deploymentTool": "symbol-bootstrap",
"deploymentToolVersion": "abc",
"lastUpdatedDate": "2021-05-22"
},
"nodeMetadata": {
"_info": "Node metadata"
}
}

0 comments on commit 506ac79

Please sign in to comment.