This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
292 lines (236 loc) · 10.3 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
name: "network_supplychain.com"
version: "1.0"
client:
organization: FarmInspector
logging:
level: info
cryptoconfig:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config
credentialStore:
path: /tmp/supplychain-store
cryptoStore:
path: /tmp/supplychain-msp
BCCSP:
security:
enabled: true
default:
provider: "SW"
hashAlgorithm: "SHA2"
softVerify: true
level: 256
tlsCerts:
systemCertPool: true
channels:
scchannel:
orderers:
- orderer1.supplychain.com
- orderer2.supplychain.com
- orderer3.supplychain.com
peers:
peer0.farminspector.supplychain.com:
endorsingPeer: true
chaincodeQuery: true
ledgerQuery: true
eventSource: true
policies:
queryChannelConfig:
minResponses: 1
maxTargets: 1
retryOpts:
attempts: 5
initialBackoff: 1000ms
maxBackoff: 10s
backoffFactor: 2.0
organizations:
FarmInspector:
mspid: FarmInspectorMSP
cryptopath: peerOrganizations/farminspector.supplychain.com/users/[email protected]/msp
peers:
- peer0.farminspector.supplychain.com
- peer1.farminspector.supplychain.com
Harvester:
mspid: HarvesterMSP
cryptopath: peerOrganizations/harvester.supplychain.com/users/[email protected]/msp
peers:
- peer0.harvester.supplychain.com
- peer1.harvester.supplychain.com
Exporter:
mspid: ExporterMSP
cryptopath: peerOrganizations/exporter.supplychain.com/users/[email protected]/msp
peers:
- peer0.exporter.supplychain.com
- peer1.exporter.supplychain.com
Importer:
mspid: ImporterMSP
cryptopath: peerOrganizations/importer.supplychain.com/users/[email protected]/msp
peers:
- peer0.importer.supplychain.com
- peer1.importer.supplychain.com
Processor:
mspid: ProcessorMSP
cryptopath: peerOrganizations/processor.supplychain.com/users/[email protected]/msp
peers:
- peer0.processor.supplychain.com
- peer1.processor.supplychain.com
orderers:
_default:
grpcOptions:
keep-alive-time: 0s
keep-alive-timeout: 20s
keep-alive-permit: false
fail-fast: false
allow-insecure: false
orderer1.supplychain.com:
url: grpc://localhost:7050
grpcOptions:
ssl-target-name-override: orderer1.supplychain.com
grpc-max-send-message-length: 10000
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/ordererOrganizations/supplychain.com/msp/tlscacerts/tlsca.supplychain.com-cert.pem
orderer2.supplychain.com:
url: grpc://localhost:8050
grpcOptions:
ssl-target-name-override: orderer2.supplychain.com
grpc-max-send-message-length: 10000
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/ordererOrganizations/supplychain.com/msp/tlscacerts/tlsca.supplychain.com-cert.pem
orderer3.supplychain.com:
url: grpc://localhost:9050
grpcOptions:
ssl-target-name-override: orderer3.supplychain.com
grpc-max-send-message-length: 10000
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/ordererOrganizations/supplychain.com/msp/tlscacerts/tlsca.supplychain.com-cert.pem
peers:
_default:
grpcOptions:
keep-alive-time: 1s
keep-alive-timeout: 20s
keep-alive-permit: false
fail-fast: false
allow-insecure: false
peer0.farminspector.supplychain.com:
url: grpcs://localhost:7051
grpcOptions:
ssl-target-name-override: peer0.farminspector.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/farminspector.supplychain.com/msp/tlscacerts/tlsca.farminspector.supplychain.com-cert.pem
peer1.farminspector.supplychain.com:
url: grpcs://localhost:8051
grpcOptions:
ssl-target-name-override: peer1.farminspector.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/farminspector.supplychain.com/msp/tlscacerts/tlsca.farminspector.supplychain.com-cert.pem
peer0.harvester.supplychain.com:
url: grpcs://localhost:9051
grpcOptions:
ssl-target-name-override: peer0.harvester.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/harvester.supplychain.com/msp/tlscacerts/tlsca.harvester.supplychain.com-cert.pem
peer1.harvester.supplychain.com:
url: grpcs://localhost:10051
grpcOptions:
ssl-target-name-override: peer1.harvester.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/harvester.supplychain.com/msp/tlscacerts/tlsca.harvester.supplychain.com-cert.pem
peer0.exporter.supplychain.com:
url: grpcs://localhost:11051
grpcOptions:
ssl-target-name-override: peer0.exporter.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/exporter.supplychain.com/msp/tlscacerts/tlsca.exporter.supplychain.com-cert.pem
peer1.exporter.supplychain.com:
url: grpcs://localhost:12051
grpcOptions:
ssl-target-name-override: peer1.exporter.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/exporter.supplychain.com/msp/tlscacerts/tlsca.exporter.supplychain.com-cert.pem
peer0.importer.supplychain.com:
url: grpcs://localhost:13051
grpcOptions:
ssl-target-name-override: peer0.importer.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/importer.supplychain.com/msp/tlscacerts/tlsca.importer.supplychain.com-cert.pem
peer1.importer.supplychain.com:
url: grpcs://localhost:14051
grpcOptions:
ssl-target-name-override: peer1.importer.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/importer.supplychain.com/msp/tlscacerts/tlsca.importer.supplychain.com-cert.pem
peer0.processor.supplychain.com:
url: grpcs://localhost:15051
grpcOptions:
ssl-target-name-override: peer0.processor.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/processor.supplychain.com/msp/tlscacerts/tlsca.processor.supplychain.com-cert.pem
peer1.processor.supplychain.com:
url: grpcs://localhost:16051
grpcOptions:
ssl-target-name-override: peer1.processor.supplychain.com
grpc.http2.keepalive_time: 15
tlsCACerts:
path: /home/sashank/Documents/Projects/FYP/coffee-supply-chain/network/crypto-config/peerOrganizations/processor.supplychain.com/msp/tlscacerts/tlsca.processor.supplychain.com-cert.pem
entityMatchers:
peer:
- pattern: (\w*)peer0.farminspector.supplychain.com(\w*)
urlSubstitutionExp: localhost:7051
sslTargetOverrideUrlSubstitutionExp: peer0.farminspector.supplychain.com
mappedHost: peer0.farminspector.supplychain.com
- pattern: (\w*)peer1.farminspector.supplychain.com(\w*)
urlSubstitutionExp: localhost:8051
sslTargetOverrideUrlSubstitutionExp: peer1.farminspector.supplychain.com
mappedHost: peer1.farminspector.supplychain.com
- pattern: (\w*)peer0.harvester.supplychain.com(\w*)
urlSubstitutionExp: localhost:9051
sslTargetOverrideUrlSubstitutionExp: peer0.harvester.supplychain.com
mappedHost: peer0.harvester.supplychain.com
- pattern: (\w*)peer1.harvester.supplychain.com(\w*)
urlSubstitutionExp: localhost:10051
sslTargetOverrideUrlSubstitutionExp: peer1.harvester.supplychain.com
mappedHost: peer1.harvester.supplychain.com
- pattern: (\w*)peer0.exporter.supplychain.com(\w*)
urlSubstitutionExp: localhost:11051
sslTargetOverrideUrlSubstitutionExp: peer0.exporter.supplychain.com
mappedHost: peer0.exporter.supplychain.com
- pattern: (\w*)peer1.exporter.supplychain.com(\w*)
urlSubstitutionExp: localhost:12051
sslTargetOverrideUrlSubstitutionExp: peer1.exporter.supplychain.com
mappedHost: peer1.exporter.supplychain.com
- pattern: (\w*)peer0.importer.supplychain.com(\w*)
urlSubstitutionExp: localhost:13051
sslTargetOverrideUrlSubstitutionExp: peer0.importer.supplychain.com
mappedHost: peer0.importer.supplychain.com
- pattern: (\w*)peer1.importer.supplychain.com(\w*)
urlSubstitutionExp: localhost:14051
sslTargetOverrideUrlSubstitutionExp: peer1.importer.supplychain.com
mappedHost: peer1.importer.supplychain.com
- pattern: (\w*)peer0.processor.supplychain.com(\w*)
urlSubstitutionExp: localhost:15051
sslTargetOverrideUrlSubstitutionExp: peer0.processor.supplychain.com
mappedHost: peer0.processor.supplychain.com
- pattern: (\w*)peer1.processor.supplychain.com(\w*)
urlSubstitutionExp: localhost:16051
sslTargetOverrideUrlSubstitutionExp: peer1.processor.supplychain.com
mappedHost: peer1.processor.supplychain.com
orderer:
- pattern: (\w*)orderer1.supplychain.com(\w*)
urlSubstitutionExp: localhost:7050
sslTargetOverrideUrlSubstitutionExp: orderer1.supplychain.com
mappedHost: orderer1.supplychain.com
- pattern: (\w*)orderer2.supplychain.com(\w*)
urlSubstitutionExp: localhost:8050
sslTargetOverrideUrlSubstitutionExp: orderer2.supplychain.com
mappedHost: orderer2.supplychain.com
- pattern: (\w*)orderer3.supplychain.com(\w*)
urlSubstitutionExp: localhost:9050
sslTargetOverrideUrlSubstitutionExp: orderer3.supplychain.com
mappedHost: orderer3.supplychain.com