File tree Expand file tree Collapse file tree 4 files changed +114
-7
lines changed
Expand file tree Collapse file tree 4 files changed +114
-7
lines changed Original file line number Diff line number Diff line change 1+ canton.parameters.non-standard-config = yes
2+ canton {
3+
4+ features.enable-testing-commands = yes
5+ features.enable-preview-commands = yes
6+
7+ sequencers {
8+ sequencer1 {
9+ init = {
10+ generate-topology-transactions-and-keys = false
11+ identity.type = manual
12+ }
13+ storage.type = memory
14+ public-api.port = 5001
15+ admin-api.port = 5002
16+ }
17+ }
18+
19+ mediators {
20+ mediator1 {
21+ init = {
22+ generate-topology-transactions-and-keys = false
23+ identity.type = manual
24+ }
25+ storage.type = memory
26+ admin-api.port = 5202
27+ }
28+ }
29+
30+ participants {
31+ // user-manual-entry-begin: port configuration
32+
33+ participant1 {
34+ init = {
35+ generate-topology-transactions-and-keys = false
36+ identity.type = manual
37+ }
38+ admin-api.tls.cert-chain-file = "canton/tls/server.crt"
39+ admin-api.tls.private-key-file = "canton/tls/server_pkcs8.pem"
40+ admin-api.tls.trust-collection-file = "canton/tls/ca.crt"
41+ ledger-api.max-token-lifetime=60.minutes
42+ ledger-api.admin-token-config.act-as-any-party-claim=true
43+ ledger-api.admin-token-config.admin-claim=true
44+ storage.type = memory
45+ admin-api.port = 5012
46+ ledger-api.port = 5011
47+ http-ledger-api.server.port = 5003
48+ ledger-api.auth-services = [{
49+ type = jwt-jwks
50+ url = "http://127.0.0.1:8889/jwks"
51+ }]
52+ }
53+
54+ }
55+ }
Original file line number Diff line number Diff line change 1+ canton {
2+
3+ features.enable-testing-commands = yes
4+ features.enable-preview-commands = yes
5+
6+ sequencers {
7+ sequencer1 {
8+ init = {
9+ generate-topology-transactions-and-keys = false
10+ identity.type = manual
11+ }
12+ storage.type = memory
13+ public-api.port = 5001
14+ admin-api.port = 5002
15+ }
16+ }
17+
18+ mediators {
19+ mediator1 {
20+ init = {
21+ generate-topology-transactions-and-keys = false
22+ identity.type = manual
23+ }
24+ storage.type = memory
25+ admin-api.port = 5202
26+ }
27+ }
28+
29+ participants {
30+ // user-manual-entry-begin: port configuration
31+
32+ participant1 {
33+ init = {
34+ generate-topology-transactions-and-keys = false
35+ identity.type = manual
36+ }
37+ admin-api.tls.cert-chain-file = "canton/tls/server.crt"
38+ admin-api.tls.private-key-file = "canton/tls/server_pkcs8.pem"
39+ admin-api.tls.trust-collection-file = "canton/tls/ca.crt"
40+ storage.type = memory
41+ admin-api.port = 5012
42+ ledger-api.port = 5011
43+ http-ledger-api.server.port = 5003
44+ ledger-api.auth-services = [{
45+ type = jwt-jwks
46+ url = "http://127.0.0.1:8889/jwks"
47+ }]
48+ }
49+
50+ }
51+ }
Original file line number Diff line number Diff line change 44 "scripts" : {
55 "start:all" : " yarn pm2 start ecosystem.config.js --env development" ,
66 "start:canton" : " tsx ./scripts/src/start-canton.ts" ,
7- "start:canton:tls" : " tsx ./scripts/src/start-canton.ts network=mainnet config=canton/canton- tls-enabled.conf " ,
7+ "start:canton:tls" : " tsx ./scripts/src/start-canton.ts network=mainnet tls=true " ,
88 "start:localnet" : " tsx ./scripts/src/start-localnet.ts start" ,
99 "start:canton:console" : " .canton/bin/canton --config canton/canton.conf --bootstrap canton/bootstrap.canton" ,
1010 "stop:all" : " yarn pm2 stop all" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const processName = 'canton'
2222
2323async function main ( ) {
2424 const network : Network = getNetworkArg ( )
25+ const tlsEnabled : boolean = getArgValue ( 'tls' ) === 'true'
2526
2627 const envConfig = SUPPORTED_VERSIONS [ network ] ?. canton
2728 if ( ! envConfig ) {
@@ -34,15 +35,15 @@ async function main() {
3435 }
3536
3637 const networkDir = path . resolve ( `canton/${ network } ` )
37- const inputCantonConf2 =
38- getArgValue ( 'config' ) ?? path . join ( networkDir , 'canton.conf' )
38+ const inputCantonConf = path . join (
39+ networkDir ,
40+ tlsEnabled ? 'canton-tls-enabled.conf' : 'canton.conf'
41+ )
3942
4043 const cantonBootstrap = path . join ( networkDir , 'bootstrap.sc' )
4144
4245 console . log (
43- info (
44- `usinng bootstrap: ${ cantonBootstrap } and conf ${ inputCantonConf2 } `
45- )
46+ info ( `using bootstrap: ${ cantonBootstrap } and conf ${ inputCantonConf } ` )
4647 )
4748
4849 const { version } = envConfig
@@ -64,7 +65,7 @@ async function main() {
6465 name : processName ,
6566 interpreter : '/bin/bash' ,
6667 script : CANTON_BIN ,
67- args : `daemon --no-tty --config ${ inputCantonConf2 } --bootstrap ${ cantonBootstrap } --log-level-stdout=INFO --log-level-canton=INFO` ,
68+ args : `daemon --no-tty --config ${ inputCantonConf } --bootstrap ${ cantonBootstrap } --log-level-stdout=INFO --log-level-canton=INFO` ,
6869 } ,
6970 function ( err ) {
7071 pm2 . launchBus ( ( err , bus ) => {
You can’t perform that action at this time.
0 commit comments