Skip to content

Instantly share code, notes, and snippets.

@yongjun823
Last active October 1, 2018 13:20
Show Gist options
  • Select an option

  • Save yongjun823/641dd2870ac0d8040131455c3deb9bf9 to your computer and use it in GitHub Desktop.

Select an option

Save yongjun823/641dd2870ac0d8040131455c3deb9bf9 to your computer and use it in GitHub Desktop.
---
################################################################################
#
# Section: Organizations
#
# - This section defines the different organizational identities which will
# be referenced later in the configuration.
#
################################################################################
Organizations:
# SampleOrg defines an MSP using the sampleconfig. It should never be used
# in production but may be used as a template for other definitions
- &OrdererOrg
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: OrdererOrg
# ID to load the MSP definition as
ID: OrdererMSP
# MSPDir is the filesystem path which contains the MSP configuration
MSPDir: crypto-config/ordererOrganizations/example.com/msp
# AdminPrincipal dictates the type of principal used for an organization's Admins policy
# Today, only the values of Role.ADMIN ad Role.MEMBER are accepted, which indicates a principal
# of role type ADMIN and role type MEMBER respectively
AdminPrincipal: Role.MEMBER
- &Org1
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org1MSP
# ID to load the MSP definition as
ID: Org1MSP
MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
# AdminPrincipal dictates the type of principal used for an organization's Admins policy
# Today, only the values of Role.ADMIN ad Role.MEMBER are accepted, which indicates a principal
# of role type ADMIN and role type MEMBER respectively
AdminPrincipal: Role.MEMBER
AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: blockchain-org1peer1
Port: 30110
- &Org2
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org2MSP
# ID to load the MSP definition as
ID: Org2MSP
MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
# AdminPrincipal dictates the type of principal used for an organization's Admins policy
# Today, only the values of Role.ADMIN ad Role.MEMBER are accepted, which indicates a principal
# of role type ADMIN and role type MEMBER respectively
AdminPrincipal: Role.MEMBER
AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: blockchain-org2peer1
Port: 30210
- &Org3
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org3MSP
# ID to load the MSP definition as
ID: Org3MSP
MSPDir: crypto-config/peerOrganizations/org3.example.com/msp
# AdminPrincipal dictates the type of principal used for an organization's Admins policy
# Today, only the values of Role.ADMIN ad Role.MEMBER are accepted, which indicates a principal
# of role type ADMIN and role type MEMBER respectively
AdminPrincipal: Role.MEMBER
AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: blockchain-org3peer1
Port: 30310
- &Org4
# DefaultOrg defines the organization which is used in the sampleconfig
# of the fabric.git development environment
Name: Org4MSP
# ID to load the MSP definition as
ID: Org4MSP
MSPDir: crypto-config/peerOrganizations/org4.example.com/msp
# AdminPrincipal dictates the type of principal used for an organization's Admins policy
# Today, only the values of Role.ADMIN ad Role.MEMBER are accepted, which indicates a principal
# of role type ADMIN and role type MEMBER respectively
AdminPrincipal: Role.MEMBER
AnchorPeers:
# AnchorPeers defines the location of peers which can be used
# for cross org gossip communication. Note, this value is only
# encoded in the genesis block in the Application section context
- Host: blockchain-org4peer1
Port: 30410
################################################################################
#
# SECTION: Application
#
# - This section defines the values to encode into a config transaction or
# genesis block for application related parameters
#
################################################################################
Application: &ApplicationDefaults
# Organizations is the list of orgs which are defined as participants on
# the application side of the network
Organizations:
################################################################################
#
# SECTION: Orderer
#
# - This section defines the values to encode into a config transaction or
# genesis block for orderer related parameters
#
################################################################################
Orderer: &OrdererDefaults
# Orderer Type: The orderer implementation to start
# Available types are "solo" and "kafka"
OrdererType: solo
Addresses:
- blockchain-orderer:31010
# Batch Timeout: The amount of time to wait before creating a batch
BatchTimeout: 2s
# Batch Size: Controls the number of messages batched into a block
BatchSize:
# Max Message Count: The maximum number of messages to permit in a batch
MaxMessageCount: 10
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
# the serialized messages in a batch.
AbsoluteMaxBytes: 99 MB
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
# the serialized messages in a batch. A message larger than the preferred
# max bytes will result in a batch larger than preferred max bytes.
PreferredMaxBytes: 512 KB
Kafka:
# Brokers: A list of Kafka brokers to which the orderer connects
# NOTE: Use IP:port notation
Brokers:
- 127.0.0.1:9092
# Organizations is the list of orgs which are defined as participants on
# the orderer side of the network
Organizations:
################################################################################
#
# Profile
#
# - Different configuration profiles may be encoded here to be specified
# as parameters to the configtxgen tool
#
################################################################################
Profiles:
FourOrgsOrdererGenesis:
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Consortiums:
SampleConsortium:
Organizations:
- *Org1
- *Org2
- *Org3
- *Org4
FourOrgsChannel:
Consortium: SampleConsortium
Application:
<<: *ApplicationDefaults
Organizations:
- *Org1
- *Org2
- *Org3
- *Org4
{
"name": "org1",
"type": "hlfv1",
"x-type": "hlfv1",
"mspID": "Org1MSP",
"version": "1.0.0",
"client": {
"organization": "Org1",
"mspid": "Org1MSP",
"connection": {
"timeout": {
"peer": {
"endorser": "300",
"eventHub": "300",
"eventReg": "300"
},
"orderer": "300"
}
}
},
"peers": {
"peer0.org1.example.com": {
"url": "grpcs://localhost:7051",
"eventUrl": "grpc://localhost:7053"
}
},
"certificateAuthorities": {
"ca.org1.example.com": {
"url": "http://localhost:7054",
"caName": "ca.org1.example.com",
"name": "ca-org1",
"hostnameOverride": "ca.org1.example.com"
}
},
"orderers": {
"orderer.example.com": {
"url": "grpcs://localhost:7050",
"hostnameOverride": "orderer.example.com"
}
},
"channels": {
"composerchannel": {
"orderers": [
"orderer.example.com"
],
"peers": {
"peer0.org1.example.com": {}
}
}
},
"channel": "channel1",
"timeout": 300
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment