mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Add connection profiles as part of the BYFN and EYFN samples. The connection profiles can be used by client applications using the Fabric SDKs to connect to those networks. Each organisation needs its own connection profile that contains the set of peers that organisation should use to connect to the network. Orderers and channels are not needed, as they can be determined by using service discovery. Connection profiles can be specified in either JSON or YAML, so provide both. Change-Id: Ie8e3d2aef6475b324e5be8ebdada4c594c2235ae Signed-off-by: Simon Stone <sstone1@uk.ibm.com>
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"name": "first-network-org1",
|
|
"version": "1.0.0",
|
|
"client": {
|
|
"organization": "Org1",
|
|
"connection": {
|
|
"timeout": {
|
|
"peer": {
|
|
"endorser": "300"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"organizations": {
|
|
"Org1": {
|
|
"mspid": "Org1MSP",
|
|
"peers": [
|
|
"peer0.org1.example.com",
|
|
"peer1.org1.example.com"
|
|
]
|
|
}
|
|
},
|
|
"peers": {
|
|
"peer0.org1.example.com": {
|
|
"url": "grpcs://localhost:7051",
|
|
"tlsCACerts": {
|
|
"path": "crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem"
|
|
},
|
|
"grpcOptions": {
|
|
"ssl-target-name-override": "peer0.org1.example.com"
|
|
}
|
|
},
|
|
"peer1.org1.example.com": {
|
|
"url": "grpcs://localhost:8051",
|
|
"tlsCACerts": {
|
|
"path": "crypto-config/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem"
|
|
},
|
|
"grpcOptions": {
|
|
"ssl-target-name-override": "peer1.org1.example.com"
|
|
}
|
|
}
|
|
}
|
|
}
|