Skip to content

Instantly share code, notes, and snippets.

@anilhelvaci
Created March 7, 2021 22:37
Show Gist options
  • Save anilhelvaci/1241326885a18fae0922149e9c5ba9bb to your computer and use it in GitHub Desktop.
Save anilhelvaci/1241326885a18fae0922149e9c5ba9bb to your computer and use it in GitHub Desktop.
Organizations:
- &Org2
# Name is the key by which this org will be referenced in channel
# configuration transactions.
# Name can include alphanumeric characters as well as dots and dashes.
Name: Org2
# SkipAsForeign can be set to true for org definitions which are to be
# inherited from the orderer system channel during channel creation. This
# is especially useful when an admin of a single org without access to the
# MSP directories of the other orgs wishes to create a channel. Note
# this property must always be set to false for orgs included in block
# creation.
SkipAsForeign: false
# ID is the key by which this org's MSP definition will be referenced.
# ID can include alphanumeric characters as well as dots and dashes.
ID: Org2
# MSPDir is the filesystem path which contains the MSP configuration.
MSPDir: ./Org2/msp
# Policies defines the set of policies at this level of the config tree
# For organization policies, their canonical path is usually
# /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
Policies: &Org2Policies
Readers:
Type: Signature
# Rule: "OR('orderingservice.member')"
# If your MSP is configured with the new NodeOUs, you might
# want to use a more specific rule like the following:
Rule: "OR('Org2.admin', 'Org2.peer', 'Org2.client')"
Writers:
Type: Signature
# Rule: "OR('orderingservice.member')"
# If your MSP is configured with the new NodeOUs, you might
# want to use a more specific rule like the following:
Rule: "OR('Org2.admin', 'Org2.client')"
Admins:
Type: Signature
Rule: "OR('Org2.admin')"
Endorsement:
Type: Signature
Rule: "OR('Org2.peer')"
AnchorPeers:
- Host: peer1.Org2.com
Port: 9054
- &Org1
# Name is the key by which this org will be referenced in channel
# configuration transactions.
# Name can include alphanumeric characters as well as dots and dashes.
Name: Org1
# SkipAsForeign can be set to true for org definitions which are to be
# inherited from the orderer system channel during channel creation. This
# is especially useful when an admin of a single org without access to the
# MSP directories of the other orgs wishes to create a channel. Note
# this property must always be set to false for orgs included in block
# creation.
SkipAsForeign: false
# ID is the key by which this org's MSP definition will be referenced.
# ID can include alphanumeric characters as well as dots and dashes.
ID: Org1
# MSPDir is the filesystem path which contains the MSP configuration.
MSPDir: ./Org1/msp
# Policies defines the set of policies at this level of the config tree
# For organization policies, their canonical path is usually
# /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
Policies: &Org1Policies
Readers:
Type: Signature
# Rule: "OR('orderingservice.member')"
# If your MSP is configured with the new NodeOUs, you might
# want to use a more specific rule like the following:
Rule: "OR('Org1.admin', 'Org1.peer', 'Org1.client')"
Writers:
Type: Signature
# Rule: "OR('orderingservice.member')"
# If your MSP is configured with the new NodeOUs, you might
# want to use a more specific rule like the following:
Rule: "OR('Org1.admin', 'Org1.peer')"
Admins:
Type: Signature
Rule: "OR('Org1.admin')"
Endorsement:
Type: Signature
Rule: "OR('Org1.peer')"
AnchorPeers:
- Host: peer1.Org1.com
Port: 8054
# SampleOrg defines an MSP using the sampleconfig. It should never be used
# in production but may be used as a template for other definitions.
- &orderingservice
# Name is the key by which this org will be referenced in channel
# configuration transactions.
# Name can include alphanumeric characters as well as dots and dashes.
Name: orderingservice
# SkipAsForeign can be set to true for org definitions which are to be
# inherited from the orderer system channel during channel creation. This
# is especially useful when an admin of a single org without access to the
# MSP directories of the other orgs wishes to create a channel. Note
# this property must always be set to false for orgs included in block
# creation.
SkipAsForeign: false
# ID is the key by which this org's MSP definition will be referenced.
# ID can include alphanumeric characters as well as dots and dashes.
ID: orderingservice
# MSPDir is the filesystem path which contains the MSP configuration.
MSPDir: ./orderingservice/msp
# Policies defines the set of policies at this level of the config tree
# For organization policies, their canonical path is usually
# /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
Policies: &orderingservicePolicies
Readers:
Type: Signature
Rule: "OR('orderingservice.member')"
# If your MSP is configured with the new NodeOUs, you might
# want to use a more specific rule like the following:
# Rule: "OR('orderingservice.admin', 'orderingservice.peer', 'orderingservice.client')"
Writers:
Type: Signature
Rule: "OR('orderingservice.member')"
# If your MSP is configured with the new NodeOUs, you might
# want to use a more specific rule like the following:
# Rule: "OR('orderingservice.admin', 'orderingservice.client')"
Admins:
Type: Signature
Rule: "OR('orderingservice.admin')"
# OrdererEndpoints is a list of all orderers this org runs which clients
# and peers may to connect to to push transactions and receive blocks respectively.
OrdererEndpoints:
- "orderer1.orderingservice.com:7050"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment