github.com/tenywen/fabric@v1.0.0-beta.0.20170620030522-a5b1ed380643/test/feature/configs/configtx.yaml (about) 1 # Copyright IBM Corp. All Rights Reserved. 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 # 5 --- 6 ################################################################################ 7 # 8 # Profiles 9 # 10 # - Different configuration profiles may be encoded here to be specified 11 # as parameters to the configtxgen tool. The profiles which specify consortiums 12 # are to be used for generating the orderer genesis block. With the correct 13 # consortium members defined in the orderer genesis block, channel creation 14 # requests may be generated with only the org member names and a consortium name 15 # 16 ################################################################################ 17 Profiles: 18 19 # SampleInsecureSolo defines a configuration which uses the Solo orderer, 20 # contains no MSP definitions, and allows all transactions and channel 21 # creation requests for the consortium SampleConsortium. 22 SampleInsecureSolo: 23 Orderer: 24 <<: *OrdererDefaults 25 Organizations: 26 - *ExampleCom 27 Consortiums: 28 SampleConsortium: 29 Organizations: 30 - *Org1ExampleCom 31 - *Org2ExampleCom 32 33 # SampleInsecureKafka defines a configuration that differs from the 34 # SampleInsecureSolo one only in that is uses the Kafka-based orderer. 35 SampleInsecureKafka: 36 Orderer: 37 <<: *OrdererDefaults 38 OrdererType: kafka 39 Organizations: 40 - *ExampleCom 41 Application: 42 <<: *ApplicationDefaults 43 Organizations: 44 - *ExampleCom 45 Consortiums: 46 SampleConsortium: 47 Organizations: 48 - *ExampleCom 49 - *Org1ExampleCom 50 - *Org2ExampleCom 51 52 # SampleSingleMSPSolo defines a configuration which uses the Solo orderer, 53 # and contains a single MSP definition (the MSP sampleconfig). 54 # The Consortium SampleConsortium has only a single member, SampleOrg 55 SampleSingleMSPSolo: 56 Orderer: 57 <<: *OrdererDefaults 58 Organizations: 59 - *ExampleCom 60 Application: 61 <<: *ApplicationDefaults 62 Organizations: 63 - *ExampleCom 64 Consortiums: 65 SampleConsortium: 66 Organizations: 67 - *ExampleCom 68 - *Org1ExampleCom 69 - *Org2ExampleCom 70 71 # SampleEmptyInsecureChannel defines a channel with no members 72 # and therefore no access control 73 SampleEmptyInsecureChannel: 74 Consortium: SampleConsortium 75 Application: 76 Organizations: 77 - *ExampleCom 78 79 # SysTestChannel defines a channel for use with the System Test Orgs 80 SysTestChannel: 81 Consortium: SampleConsortium 82 Application: 83 Organizations: 84 - *Org1ExampleCom 85 - *Org2ExampleCom 86 87 # SampleSingleMSPChannel defines a channel with only the sample org as a 88 # member. It is designed to be used in conjunction with SampleSingleMSPSolo 89 # and SampleSingleMSPKafka orderer profiles 90 SampleSingleMSPChannel: 91 Consortium: SampleConsortium 92 Application: 93 <<: *ApplicationDefaults 94 Organizations: 95 - *Org1ExampleCom 96 - *Org2ExampleCom 97 98 ################################################################################ 99 # 100 # Section: Organizations 101 # 102 # - This section defines the different organizational identities which will 103 # be referenced later in the configuration. 104 # 105 ################################################################################ 106 Organizations: 107 108 - &Org1 109 Name: Organization1 110 ID: Org1 111 MSPDir: ./peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp 112 AdminPrincipal: Role.MEMBER 113 AnchorPeers: 114 - Host: peer0.org1.example.com 115 Port: 7051 116 117 - &Org2 118 Name: Organization2 119 ID: Org2 120 MSPDir: ./peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp 121 AdminPrincipal: Role.MEMBER 122 AnchorPeers: 123 - Host: peer0.org2.example.com 124 Port: 7051 125 126 - &ExampleCom 127 Name: ExampleCom 128 ID: example.com 129 MSPDir: ./ordererOrganizations/example.com/msp 130 131 - &Org1ExampleCom 132 Name: Org1ExampleCom 133 ID: org1.example.com 134 MSPDir: ./peerOrganizations/org1.example.com/msp 135 AnchorPeers: 136 - Host: peer0.org1.example.com 137 Port: 7051 138 139 - &Org2ExampleCom 140 Name: Org2ExampleCom 141 ID: org2.example.com 142 MSPDir: ./peerOrganizations/org2.example.com/msp 143 AnchorPeers: 144 - Host: peer0.org2.example.com 145 Port: 7051 146 147 ################################################################################ 148 # 149 # SECTION: Orderer 150 # 151 # - This section defines the values to encode into a config transaction or 152 # genesis block for orderer related parameters. 153 # 154 ################################################################################ 155 Orderer: &OrdererDefaults 156 157 # Orderer Type: The orderer implementation to start. 158 # Available types are "solo" and "kafka". 159 OrdererType: solo 160 161 Addresses: 162 - orderer.example.com:7050 163 164 # Batch Timeout: The amount of time to wait before creating a batch. 165 BatchTimeout: 2s 166 167 # Batch Size: Controls the number of messages batched into a block. 168 BatchSize: 169 170 # Max Message Count: The maximum number of messages to permit in a 171 # batch. 172 MaxMessageCount: 10 173 174 # Absolute Max Bytes: The absolute maximum number of bytes allowed for 175 # the serialized messages in a batch. If the "kafka" OrdererType is 176 # selected, set 'message.max.bytes' and 'replica.fetch.max.bytes' on the 177 # Kafka brokers to a value that is larger than this one. 178 AbsoluteMaxBytes: 98 MB 179 180 # Preferred Max Bytes: The preferred maximum number of bytes allowed for 181 # the serialized messages in a batch. A message larger than the 182 # preferred max bytes will result in a batch larger than preferred max 183 # bytes. 184 PreferredMaxBytes: 512 KB 185 186 # Max Channels is the maximum number of channels to allow on the ordering 187 # network. When set to 0, this implies no maximum number of channels. 188 MaxChannels: 0 189 190 Kafka: 191 # Brokers: A list of Kafka brokers to which the orderer connects. 192 # NOTE: Use IP:port notation 193 Brokers: 194 - 127.0.0.1:9092 195 196 # Organizations is the list of orgs which are defined as participants on 197 # the orderer side of the network. 198 Organizations: 199 200 ################################################################################ 201 # 202 # SECTION: Application 203 # 204 # - This section defines the values to encode into a config transaction or 205 # genesis block for application related parameters. 206 # 207 ################################################################################ 208 Application: &ApplicationDefaults 209 210 # Organizations is the list of orgs which are defined as participants on 211 # the application side of the network. 212 Organizations: