-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 <[email protected]>
- Loading branch information
Simon Stone
committed
Apr 24, 2019
1 parent
dd08f70
commit 529b83b
Showing
6 changed files
with
213 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |