mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 07:25:10 +00:00
[FAB-14330] Add connection profiles for BYFN and EYFN
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>
This commit is contained in:
parent
026aa9ec01
commit
349d88d184
6 changed files with 213 additions and 0 deletions
43
first-network/connection-org1.json
Normal file
43
first-network/connection-org1.json
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
first-network/connection-org1.yaml
Normal file
28
first-network/connection-org1.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
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
|
||||
43
first-network/connection-org2.json
Normal file
43
first-network/connection-org2.json
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"name": "first-network-org2",
|
||||
"version": "1.0.0",
|
||||
"client": {
|
||||
"organization": "Org2",
|
||||
"connection": {
|
||||
"timeout": {
|
||||
"peer": {
|
||||
"endorser": "300"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"organizations": {
|
||||
"Org2": {
|
||||
"mspid": "Org2MSP",
|
||||
"peers": [
|
||||
"peer0.org2.example.com",
|
||||
"peer1.org2.example.com"
|
||||
]
|
||||
}
|
||||
},
|
||||
"peers": {
|
||||
"peer0.org2.example.com": {
|
||||
"url": "grpcs://localhost:9051",
|
||||
"tlsCACerts": {
|
||||
"path": "crypto-config/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem"
|
||||
},
|
||||
"grpcOptions": {
|
||||
"ssl-target-name-override": "peer0.org2.example.com"
|
||||
}
|
||||
},
|
||||
"peer1.org2.example.com": {
|
||||
"url": "grpcs://localhost:10051",
|
||||
"tlsCACerts": {
|
||||
"path": "crypto-config/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem"
|
||||
},
|
||||
"grpcOptions": {
|
||||
"ssl-target-name-override": "peer1.org2.example.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
first-network/connection-org2.yaml
Normal file
28
first-network/connection-org2.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
name: first-network-org2
|
||||
version: 1.0.0
|
||||
client:
|
||||
organization: Org2
|
||||
connection:
|
||||
timeout:
|
||||
peer:
|
||||
endorser: '300'
|
||||
organizations:
|
||||
Org2:
|
||||
mspid: Org2MSP
|
||||
peers:
|
||||
- peer0.org2.example.com
|
||||
- peer1.org2.example.com
|
||||
peers:
|
||||
peer0.org2.example.com:
|
||||
url: grpcs://localhost:9051
|
||||
tlsCACerts:
|
||||
path: crypto-config/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem
|
||||
grpcOptions:
|
||||
ssl-target-name-override: peer0.org2.example.com
|
||||
peer1.org2.example.com:
|
||||
url: grpcs://localhost:10051
|
||||
tlsCACerts:
|
||||
path: crypto-config/peerOrganizations/org2.example.com/tlsca/tlsca.org2.example.com-cert.pem
|
||||
grpcOptions:
|
||||
ssl-target-name-override: peer1.org2.example.com
|
||||
43
first-network/connection-org3.json
Normal file
43
first-network/connection-org3.json
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
"name": "first-network-org3",
|
||||
"version": "1.0.0",
|
||||
"client": {
|
||||
"organization": "Org3",
|
||||
"connection": {
|
||||
"timeout": {
|
||||
"peer": {
|
||||
"endorser": "300"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"organizations": {
|
||||
"Org3": {
|
||||
"mspid": "Org3MSP",
|
||||
"peers": [
|
||||
"peer0.org3.example.com",
|
||||
"peer1.org3.example.com"
|
||||
]
|
||||
}
|
||||
},
|
||||
"peers": {
|
||||
"peer0.org3.example.com": {
|
||||
"url": "grpcs://localhost:11051",
|
||||
"tlsCACerts": {
|
||||
"path": "org3-artifacts/crypto-config/peerOrganizations/org3.example.com/tlsca/tlsca.org3.example.com-cert.pem"
|
||||
},
|
||||
"grpcOptions": {
|
||||
"ssl-target-name-override": "peer0.org3.example.com"
|
||||
}
|
||||
},
|
||||
"peer1.org3.example.com": {
|
||||
"url": "grpcs://localhost:12051",
|
||||
"tlsCACerts": {
|
||||
"path": "org3-artifacts/crypto-config/peerOrganizations/org3.example.com/tlsca/tlsca.org3.example.com-cert.pem"
|
||||
},
|
||||
"grpcOptions": {
|
||||
"ssl-target-name-override": "peer1.org3.example.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
28
first-network/connection-org3.yaml
Normal file
28
first-network/connection-org3.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
name: first-network-org3
|
||||
version: 1.0.0
|
||||
client:
|
||||
organization: Org3
|
||||
connection:
|
||||
timeout:
|
||||
peer:
|
||||
endorser: '300'
|
||||
organizations:
|
||||
Org3:
|
||||
mspid: Org3MSP
|
||||
peers:
|
||||
- peer0.org3.example.com
|
||||
- peer1.org3.example.com
|
||||
peers:
|
||||
peer0.org3.example.com:
|
||||
url: grpcs://localhost:11051
|
||||
tlsCACerts:
|
||||
path: org3-artifacts/crypto-config/peerOrganizations/org3.example.com/tlsca/tlsca.org3.example.com-cert.pem
|
||||
grpcOptions:
|
||||
ssl-target-name-override: peer0.org3.example.com
|
||||
peer1.org3.example.com:
|
||||
url: grpcs://localhost:12051
|
||||
tlsCACerts:
|
||||
path: org3-artifacts/crypto-config/peerOrganizations/org3.example.com/tlsca/tlsca.org3.example.com-cert.pem
|
||||
grpcOptions:
|
||||
ssl-target-name-override: peer1.org3.example.com
|
||||
Loading…
Reference in a new issue