Created
December 19, 2018 11:57
-
-
Save thekaleidoscope/4eec4450f5c4aa9851cd983005d3c014 to your computer and use it in GitHub Desktop.
The config file for twp org(2 peer per org) consortium in hyperledger fabric
This file contains hidden or 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: "volkswagen_world" | |
| # | |
| # Schema version of the content. Used by the SDK to apply the corresponding parsing rules. | |
| # | |
| version: 1.0.0 | |
| # | |
| # The client section used by GO SDK. | |
| # | |
| client: | |
| # Which organization does this application instance belong to? The value must be the name of an org | |
| # defined under "organizations" | |
| organization: mrf | |
| logging: | |
| level: info | |
| # Root of the MSP directories with keys and certs. | |
| cryptoconfig: | |
| path: ${GOPATH}/src/github.com/Volkswagen_World/fixtures/crypto-config | |
| # Some SDKs support pluggable KV stores, the properties under "credentialStore" | |
| # are implementation specific | |
| credentialStore: | |
| path: /tmp/Volkswagen_World | |
| # [Optional]. Specific to the CryptoSuite implementation used by GO SDK. Software-based implementations | |
| # requiring a key store. PKCS#11 based implementations does not. | |
| cryptoStore: | |
| path: /tmp/Volkswagen_World-msp | |
| # BCCSP config for the client. Used by GO SDK. | |
| BCCSP: | |
| security: | |
| enabled: true | |
| default: | |
| provider: "SW" | |
| hashAlgorithm: "SHA2" | |
| softVerify: true | |
| level: 256 | |
| tlsCerts: | |
| # [Optional]. Use system certificate pool when connecting to peers, orderers (for negotiating TLS) Default: false | |
| systemCertPool: false | |
| # [Optional]. Client key and cert for TLS handshake with peers and orderers | |
| client: | |
| keyfile: | |
| certfile: | |
| # | |
| # [Optional]. But most apps would have this section so that channel objects can be constructed | |
| # based on the content below. If an app is creating channels, then it likely will not need this | |
| # section. | |
| # | |
| channels: | |
| # name of the channel | |
| indianchannel: | |
| # Required. list of orderers designated by the application to use for transactions on this | |
| # channel. This list can be a result of access control ("org1" can only access "ordererA"), or | |
| # operational decisions to share loads from applications among the orderers. The values must | |
| # be "names" of orgs defined under "organizations/peers" | |
| # deprecated: not recommended, to override any orderer configuration items, entity matchers should be used. | |
| # orderers: | |
| # - orderer.example.com | |
| # Required. list of peers from participating orgs | |
| peers: | |
| peer0.mrf.volkswagenag.com: | |
| # [Optional]. will this peer be sent transaction proposals for endorsement? The peer must | |
| # have the chaincode installed. The app can also use this property to decide which peers | |
| # to send the chaincode install request. Default: true | |
| endorsingPeer: true | |
| # [Optional]. will this peer be sent query proposals? The peer must have the chaincode | |
| # installed. The app can also use this property to decide which peers to send the | |
| # chaincode install request. Default: true | |
| chaincodeQuery: true | |
| # [Optional]. will this peer be sent query proposals that do not require chaincodes, like | |
| # queryBlock(), queryTransaction(), etc. Default: true | |
| ledgerQuery: true | |
| # [Optional]. will this peer be the target of the SDK's listener registration? All peers can | |
| # produce events but the app typically only needs to connect to one to listen to events. | |
| # Default: true | |
| eventSource: true | |
| peer1.mrf.volkswagenag.com: | |
| peer0.gabriel.volkswagenag.com: | |
| endorsingPeer: true | |
| chaincodeQuery: true | |
| ledgerQuery: true | |
| eventSource: true | |
| peer1.gabriel.volkswagenag.com: | |
| policies: | |
| #[Optional] options for retrieving channel configuration blocks | |
| queryChannelConfig: | |
| #[Optional] min number of success responses (from targets/peers) | |
| minResponses: 1 | |
| #[Optional] channel config will be retrieved for these number of random targets | |
| maxTargets: 1 | |
| #[Optional] retry options for query config block | |
| retryOpts: | |
| #[Optional] number of retry attempts | |
| attempts: 5 | |
| #[Optional] the back off interval for the first retry attempt | |
| initialBackoff: 500ms | |
| #[Optional] the maximum back off interval for any retry attempt | |
| maxBackoff: 5s | |
| #[Optional] he factor by which the initial back off period is exponentially incremented | |
| backoffFactor: 2.0 | |
| # | |
| # list of participating organizations in this network | |
| # | |
| organizations: | |
| mrf: | |
| mspid: mrf.volkswagenag.com | |
| cryptoPath: peerOrganizations/mrf.volkswagenag.com/users/{userName}@mrf.volkswagenag.com/msp | |
| peers: | |
| - peer0.mrf.volkswagenag.com | |
| - peer1.mrf.volkswagenag.com | |
| certificateAuthorities: | |
| - ca.mrf.volkswagenag.com | |
| gabriel: | |
| mspid: gabriel.volkswagenag.com | |
| cryptoPath: peerOrganizations/gabriel.volkswagenag.com/users/{userName}@gabriel.volkswagenag.com/msp | |
| peers: | |
| - peer0.gabriel.volkswagenag.com | |
| - peer1.gabriel.volkswagenag.com | |
| certificateAuthorities: | |
| - ca.gabriel.volkswagenag.com | |
| # [Optional]. Certificate Authorities issue certificates for identification purposes in a Fabric based | |
| # network. Typically certificates provisioning is done in a separate process outside of the | |
| # runtime network. Fabric-CA is a special certificate authority that provides a REST APIs for | |
| # dynamic certificate management (enroll, revoke, re-enroll). The following section is only for | |
| # Fabric-CA servers. | |
| # | |
| # 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.volkswagenag.com: | |
| url: localhost:7050 | |
| # these are standard properties defined by the gRPC library | |
| # they will be passed in as-is to gRPC client constructor | |
| grpcOptions: | |
| ssl-target-name-override: orderer.volkswagenag.com | |
| # These parameters should be set in coordination with the keepalive policy on the server, | |
| # as incompatible settings can result in closing of connection. | |
| # When duration of the 'keep-alive-time' is set to 0 or less the keep alive client parameters are disabled | |
| keep-alive-time: 0s | |
| keep-alive-timeout: 20s | |
| keep-alive-permit: false | |
| fail-fast: false | |
| # allow-insecure will be taken into consideration if address has no protocol defined, if true then grpc or else grpcs | |
| allow-insecure: false | |
| tlsCACerts: | |
| # Certificate location absolute path | |
| path: ${GOPATH}/src/github.com/Volkswagen_World/fixtures/crypto-config/ordererOrganizations/volkswagenag.com/tlsca/tlsca.volkswagenag.com-cert.pem | |
| # | |
| # List of peers to send various requests to, including endorsement, query | |
| # and event listener registration. | |
| # | |
| peers: | |
| peer0.mrf.volkswagenag.com: | |
| # this URL is used to send endorsement and query requests | |
| url: localhost:7051 | |
| # eventUrl is only needed when using eventhub (default is delivery service) | |
| eventUrl: localhost:7053 | |
| grpcOptions: | |
| ssl-target-name-override: peer0.mrf.volkswagenag.com | |
| # These parameters should be set in coordination with the keepalive policy on the server, | |
| # as incompatible settings can result in closing of connection. | |
| # When duration of the 'keep-alive-time' is set to 0 or less the keep alive client parameters are disabled | |
| keep-alive-time: 0s | |
| keep-alive-timeout: 20s | |
| keep-alive-permit: false | |
| fail-fast: false | |
| # allow-insecure will be taken into consideration if address has no protocol defined, if true then grpc or else grpcs | |
| allow-insecure: false | |
| tlsCACerts: | |
| # Certificate location absolute path | |
| path: ${GOPATH}/src/github.com/Volkswagen_World/fixtures/crypto-config/peerOrganizations/mrf.volkswagenag.com/tlsca/tlsca.mrf.volkswagenag.com-cert.pem | |
| peer1.mrf.volkswagenag.com: | |
| # this URL is used to send endorsement and query requests | |
| url: localhost:8051 | |
| # eventUrl is only needed when using eventhub (default is delivery service) | |
| eventUrl: localhost:8053 | |
| grpcOptions: | |
| ssl-target-name-override: peer1.mrf.volkswagenag.com | |
| # These parameters should be set in coordination with the keepalive policy on the server, | |
| # as incompatible settings can result in closing of connection. | |
| # When duration of the 'keep-alive-time' is set to 0 or less the keep alive client parameters are disabled | |
| keep-alive-time: 0s | |
| keep-alive-timeout: 20s | |
| keep-alive-permit: false | |
| fail-fast: false | |
| # allow-insecure will be taken into consideration if address has no protocol defined, if true then grpc or else grpcs | |
| allow-insecure: false | |
| tlsCACerts: | |
| # Certificate location absolute path | |
| path: ${GOPATH}/src/github.com/Volkswagen_World/fixtures/crypto-config/peerOrganizations/mrf.volkswagenag.com/tlsca/tlsca.mrf.volkswagenag.com-cert.pem | |
| peer0.gabriel.volkswagenag.com: | |
| # this URL is used to send endorsement and query requests | |
| url: localhost:9051 | |
| # eventUrl is only needed when using eventhub (default is delivery service) | |
| eventUrl: localhost:9053 | |
| grpcOptions: | |
| ssl-target-name-override: peer0.gabriel.volkswagenag.com | |
| # These parameters should be set in coordination with the keepalive policy on the server, | |
| # as incompatible settings can result in closing of connection. | |
| # When duration of the 'keep-alive-time' is set to 0 or less the keep alive client parameters are disabled | |
| keep-alive-time: 0s | |
| keep-alive-timeout: 20s | |
| keep-alive-permit: false | |
| fail-fast: false | |
| # allow-insecure will be taken into consideration if address has no protocol defined, if true then grpc or else grpcs | |
| allow-insecure: false | |
| tlsCACerts: | |
| # Certificate location absolute path | |
| path: ${GOPATH}/src/github.com/Volkswagen_World/fixtures/crypto-config/peerOrganizations/gabriel.volkswagenag.com/tlsca/tlsca.gabriel.volkswagenag.com-cert.pem | |
| peer1.gabriel.volkswagenag.com: | |
| # this URL is used to send endorsement and query requests | |
| url: localhost:10051 | |
| # eventUrl is only needed when using eventhub (default is delivery service) | |
| eventUrl: localhost:10053 | |
| grpcOptions: | |
| ssl-target-name-override: peer1.gabriel.volkswagenag.com | |
| # These parameters should be set in coordination with the keepalive policy on the server, | |
| # as incompatible settings can result in closing of connection. | |
| # When duration of the 'keep-alive-time' is set to 0 or less the keep alive client parameters are disabled | |
| keep-alive-time: 0s | |
| keep-alive-timeout: 20s | |
| keep-alive-permit: false | |
| fail-fast: false | |
| # allow-insecure will be taken into consideration if address has no protocol defined, if true then grpc or else grpcs | |
| allow-insecure: false | |
| tlsCACerts: | |
| # Certificate location absolute path | |
| path: ${GOPATH}/src/github.com/Volkswagen_World/fixtures/crypto-config/peerOrganizations/gabriel.volkswagenag.com/tlsca/tlsca.gabriel.volkswagenag.com-cert.pem | |
| # | |
| # Fabric-CA is a special kind of Certificate Authority provided by Hyperledger Fabric which allows | |
| # certificate management to be done via REST APIs. Application may choose to use a standard | |
| # Certificate Authority instead of Fabric-CA, in which case this section would not be specified. | |
| # | |
| certificateAuthorities: | |
| ca.mrf.volkswagenag.com: | |
| url: http://localhost:7054 | |
| # Fabric-CA supports dynamic user enrollment via REST APIs. A "root" user, a.k.a registrar, is | |
| # needed to enroll and invoke new users. | |
| httpOptions: | |
| verify: false | |
| registrar: | |
| enrollId: admin | |
| enrollSecret: adminpw | |
| # [Optional] The optional name of the CA. | |
| caName: ca.mrf.volkswagenag.com | |
| tlsCACerts: | |
| # Certificate location absolute path | |
| path: ${GOPATH}/src/github.com/Volkswagen_World/fixtures/crypto-config/peerOrganizations/mrf.volkswagenag.com/ca/ca.mrf.volkswagenag.com-cert.pem | |
| ca.gabriel.volkswagenag.com: | |
| url: http://localhost:9054 | |
| # Fabric-CA supports dynamic user enrollment via REST APIs. A "root" user, a.k.a registrar, is | |
| # needed to enroll and invoke new users. | |
| httpOptions: | |
| verify: false | |
| registrar: | |
| enrollId: admin | |
| enrollSecret: adminpw | |
| # [Optional] The optional name of the CA. | |
| caName: ca.gabriel.volkswagenag.com | |
| tlsCACerts: | |
| # Certificate location absolute path | |
| path: ${GOPATH}/src/github.com/Volkswagen_World/fixtures/crypto-config/peerOrganizations/gabriel.volkswagenag.com/ca/ca.gabriel.volkswagenag.com-cert.pem | |
| entityMatchers: | |
| peer: | |
| - pattern: (\w*)peer0.mrf.volkswagenag.com(\w*) | |
| urlSubstitutionExp: localhost:7051 | |
| eventUrlSubstitutionExp: localhost:7053 | |
| sslTargetOverrideUrlSubstitutionExp: peer0.mrf.volkswagenag.com | |
| mappedHost: peer0.mrf.volkswagenag.com | |
| - pattern: (\w*)peer1.mrf.volkswagenag.com(\w*) | |
| urlSubstitutionExp: localhost:8051 | |
| eventUrlSubstitutionExp: localhost:8053 | |
| sslTargetOverrideUrlSubstitutionExp: peer1.mrf.volkswagenag.com | |
| mappedHost: peer1.mrf.volkswagenag.com | |
| - pattern: (\w*)peer0.gabriel.volkswagenag.com(\w*) | |
| urlSubstitutionExp: localhost:9051 | |
| eventUrlSubstitutionExp: localhost:9053 | |
| sslTargetOverrideUrlSubstitutionExp: peer0.gabriel.volkswagenag.com | |
| mappedHost: peer0.gabriel.volkswagenag.com | |
| - pattern: (\w*)peer1.gabriel.volkswagenag.com(\w*) | |
| urlSubstitutionExp: localhost:10051 | |
| eventUrlSubstitutionExp: localhost:10053 | |
| sslTargetOverrideUrlSubstitutionExp: peer1.gabriel.volkswagenag.com | |
| mappedHost: peer1.gabriel.volkswagenag.com | |
| orderer: | |
| - pattern: (\w*)orderer.volkswagenag.com(\w*) | |
| urlSubstitutionExp: localhost:7050 | |
| sslTargetOverrideUrlSubstitutionExp: orderer.volkswagenag.com | |
| mappedHost: orderer.volkswagenag.com | |
| certificateAuthorities: | |
| - pattern: (\w*)ca.mrf.volkswagenag.com(\w*) | |
| urlSubstitutionExp: http://localhost:7054 | |
| mappedHost: ca.mrf.volkswagenag.com | |
| - pattern: (\w*)ca.gabriel.volkswagenag.com(\w*) | |
| urlSubstitutionExp: http://localhost:9054 | |
| mappedHost: ca.gabriel.volkswagenag.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment