-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.js
39 lines (33 loc) · 1.17 KB
/
configuration.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
'use strict';
// Programming note:
// top level module code only executes once!
// This code will only be run by first require-er.
// conifig defaults:
var defaults = {
datacache: __dirname + "/datacache",
datacache_max_files: 100,
datacache_max_age: 3600000, // one hour, in ms
sam_arguments :["-e","uboone"],
// restrict_live_event_upload : [ '::ffff:131.225.237.41/24', '131.225.237.255' ], // Set to restrict incoming uploads to the near2 DAQ system. enable in production.
live_event_cache: __dirname + "/live_event_cache",
live_event_max_files: 30,
accept_live_data: true,
http_server_port: 4590,
}
defaults.composer_config = {
"forking": false,
"CacheStoragePath": defaults.datacache,
"CacheStorageUrl": "/datacache",
"WorkingSuffix": "event",
"CreateSubdirCache": true,
"fork_logdir": __dirname+"/logs/",
"DeadChannelDB":__dirname+"/db/dead_channels.txt",
plexus: {
tpc_source:"sqlite "+__dirname+"/db/current-plexus.db",
pmt_source:"sqlite "+__dirname+"/db/current-plexus.db",
}
}
var config;
if(!config) config = require('deepmerge')(defaults,require('./config.js'));
console.log("config:",config);
module.exports = config;