Created
November 17, 2019 18:30
-
-
Save zweite/4a600b25f3ccea852a74c6e7fed640ad to your computer and use it in GitHub Desktop.
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
name: "mtg-trade-network" | |
description: "The network that has all the configuration parameters" | |
version: 1 | |
client: | |
organization: org1 | |
logging: | |
level: info | |
cryptoconfig: | |
path: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto | |
credentialStore: | |
path: "/tmp/state-store" | |
cryptoStore: | |
path: /tmp/msp | |
# BCCSP config for the client. Used by GO SDK. | |
BCCSP: | |
security: | |
enabled: true | |
default: | |
provider: "SW" | |
hashAlgorithm: "SHA2" | |
softVerify: true | |
level: 256 | |
tlsCerts: | |
systemCertPool: false | |
client: | |
key: | |
path: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/tls/client.key | |
cert: | |
path: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/tls/client.crt | |
channels: | |
mychannel: | |
peers: | |
peer0.org1.example.com: | |
endorsingPeer: true | |
chaincodeQuery: true | |
ledgerQuery: true | |
eventSource: true | |
peer0.org2.example.com: | |
endorsingPeer: true | |
chaincodeQuery: true | |
ledgerQuery: true | |
eventSource: true | |
policies: | |
queryChannelConfig: | |
minResponses: 1 | |
maxTargets: 1 | |
retryOpts: | |
attempts: 5 | |
initialBackoff: 500ms | |
maxBackoff: 5s | |
backoffFactor: 2.0 | |
mtg: | |
peers: | |
peer0.org1.example.com: | |
endorsingPeer: true | |
chaincodeQuery: true | |
ledgerQuery: true | |
eventSource: true | |
peer0.org2.example.com: | |
endorsingPeer: true | |
chaincodeQuery: true | |
ledgerQuery: true | |
eventSource: true | |
policies: | |
queryChannelConfig: | |
minResponses: 1 | |
maxTargets: 1 | |
retryOpts: | |
attempts: 5 | |
initialBackoff: 500ms | |
maxBackoff: 5s | |
backoffFactor: 2.0 | |
# | |
# list of participating organizations in this network | |
# | |
organizations: | |
org1: | |
mspid: Org1MSP | |
# This org's MSP store (absolute path or relative to client.cryptoconfig) | |
cryptoPath: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/{username}@org1.example.com/msp | |
peers: | |
- peer0.org1.example.com | |
- peer1.org1.example.com | |
org2: | |
mspid: Org2MSP | |
# This org's MSP store (absolute path or relative to client.cryptoconfig) | |
cryptoPath: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org2.example.com/users/{username}@org2.example.com/msp | |
peers: | |
- peer0.org2.example.com | |
- peer1.org2.example.com | |
# | |
# List of orderers to send transaction and channel create/update requests to. For the time | |
# being only one orderer is needed. If more than one is defined, which one get used by the | |
# SDK is implementation specific. Consult each SDK's documentation for its handling of orderers. | |
# | |
orderers: | |
orderer.example.com: | |
# [Optional] Default: Infer from hostname | |
url: orderer.example.com:7050 | |
# these are standard properties defined by the gRPC library | |
# they will be passed in as-is to gRPC client constructor | |
#TODO to be moved to high level, common for all grpc connections | |
grpcOptions: | |
ssl-target-name-override: orderer.example.com | |
keep-alive-time: 0s | |
keep-alive-timeout: 20s | |
keep-alive-permit: false | |
fail-fast: false | |
allow-insecure: false | |
tlsCACerts: | |
# Certificate location absolute path | |
path: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/tlsca/tlsca.example.com-cert.pem | |
# | |
# List of peers to send various requests to, including endorsement, query | |
# and event listener registration. | |
# | |
peers: | |
peer0.org1.example.com: | |
url: peer0.org1.example.com:7051 | |
#TODO to be moved to high level, common for all grpc connections | |
grpcOptions: | |
ssl-target-name-override: peer0.org1.example.com | |
keep-alive-time: 0s | |
keep-alive-timeout: 20s | |
keep-alive-permit: false | |
fail-fast: false | |
allow-insecure: false | |
tlsCACerts: | |
path: /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/tlsca/tlsca.org1.example.com-cert.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment