-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
16 lines (14 loc) · 985 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var util = require('util');
var path = require('path');
var hfc = require('fabric-client');
var file = 'network-config.yaml';
// indicate to the application where the setup file is located so it able
// to have the hfc load it to initalize the fabric client instance
hfc.setConfigSetting('network-connection-profile-path',path.join(__dirname, 'artifacts' ,file));
hfc.setConfigSetting('Org1-connection-profile-path',path.join(__dirname, 'artifacts', 'org1.yaml'));
hfc.setConfigSetting('Org2-connection-profile-path',path.join(__dirname, 'artifacts', 'org2.yaml'));
hfc.setConfigSetting('Org3-connection-profile-path',path.join(__dirname, 'artifacts', 'org3.yaml'));
hfc.setConfigSetting('Org4-connection-profile-path',path.join(__dirname, 'artifacts', 'org4.yaml'));
hfc.setConfigSetting('Org5-connection-profile-path',path.join(__dirname, 'artifacts', 'org5.yaml'));
// some other settings the application might need to know
hfc.addConfigFile(path.join(__dirname, 'config.json'));