forked from ezpaarse-project/bibliomap-enricher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
47 lines (44 loc) · 1.38 KB
/
config.js
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
var defaultConfig = {
debug: false,
ezpaarse: {
url: 'http://127.0.0.1:59599', // adjust if ezpaarse is installed elsewhere
headers: {
'Accept': 'application/jsonstream',
// pas de dédoublonnage counter
// ni de buffering des lignes de logs
// pour permettre la diffusion temps réel des ECs
'Double-Click-Removal': 'false',
'ezPAARSE-Buffer-Size': 0
}
},
logio: {
// listen for harvested logs
listen: {
host: '127.0.0.1', // adjust where log-io.harvester is located
port: 28777 // this is the default log.io-harvester destination port
},
// broadcast to logio server daemon
broadcast: {
host: '127.0.0.1', // adjust where bibliolog (log.io-server) is located
port: 28778 // port choosen by bibliolog where to broadcast harvested logs + ezpaarse usage events
}
},
// broadcast ezpaarse EC's through a network socket
bibliomap: {
host: '127.0.0.1', // socket host
port: 28779 // socket port
},
autoConnectDelay: 1000, // time to wait beetween each connection try
};
// to allow config overloading
// by a local config file
var nconf = require('nconf');
var localConf = {};
try {
localConf = require('./config.local.js');
} catch (err) { }
nconf.argv()
.env()
.overrides(localConf)
.defaults(defaultConfig);
module.exports = nconf.get();