-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
151 lines (130 loc) · 4.75 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
mysqlRemote:
user: root
password: wenqiang
host: 101.133.169.145
port: 3306
database: Blog
mysqlLocal:
user: root
password:
host: 127.0.0.1
port: 3306
database: Blog
#fabric config
version: 1.0.0
client:
organization: org1
logging:
level: info
cryptoconfig:
path: cryptoconfig
channels:
# multi-org test channel
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
#
# list of participating organizations in this network
#
organizations:
org1:
mspid: Org1MSP
# This org's MSP store (absolute path or relative to client.cryptoconfig)
cryptoPath: cryptoconfig\peerOrganizations\org1.example.com\users\[email protected]\msp
peers:
- peer0.org1.example.com
Admin:
cert:
path: cryptoconfig\peerOrganizations\org1.example.com\users\[email protected]\msp\signcerts\[email protected]
User1:
cert:
path: cryptoconfig\peerOrganizations\org1.example.com\users\[email protected]\msp\signcerts\[email protected]
org2:
mspid: Org2MSP
# This org's MSP store (absolute path or relative to client.cryptoconfig)
cryptoPath: cryptoconfig\peerOrganizations\org2.example.com\users\[email protected]\msp
peers:
- peer0.org2.example.com
users:
Admin:
cert:
path: cryptoconfig\peerOrganizations\org2.example.com\users\[email protected]\msp\signcerts\[email protected]
User1:
cert:
path: cryptoconfig\peerOrganizations\org2.example.com\users\[email protected]\msp\signcerts\[email protected]
# Orderer Org name
ordererorg:
# Membership Service Provider ID for this organization
mspID: OrdererMSP
# Needed to load users crypto keys and certs for this org (absolute path or relative to global crypto path, DEV mode)
cryptoPath: cryptoconfig\ordererOrganizations\example.com\users\[email protected]\msp
orderers:
orderer.example.com:
# [Optional] Default: Infer from hostname
url: 101.133.169.145:7050 #orderer.example.com:7050
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: cryptoconfig\ordererOrganizations\example.com\tlsca\tlsca.example.com-cert.pem
peers:
peer0.org1.example.com:
# this URL is used to send endorsement and query requests
# [Optional] Default: Infer from hostname
url: 101.133.169.145:7051 #peer0.org1.example.com:7051
grpcOptions:
ssl-target-name-override: peer0.org1.example.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
#grpcOptions:
# ssl-target-name-override: peer0.org1.example.com
tlsCACerts:
# Certificate location absolute path
path: cryptoconfig\peerOrganizations\org1.example.com\tlsca\tlsca.org1.example.com-cert.pem
peer0.org2.example.com:
url: 101.133.169.145:9051 #peer0.org2.example.com:9051
#grpcOptions:
# ssl-target-name-override: peer0.org2.example.com
grpcOptions:
ssl-target-name-override: peer0.org2.example.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:
path: cryptoconfig\peerOrganizations\org2.example.com\tlsca\tlsca.org2.example.com-cert.pem