-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js
47 lines (44 loc) · 941 Bytes
/
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
const path = require('path')
const os = require('os')
const { RecordStore } = require('./store')
const { version } = require('./package.json')
const IS_TEST = process.env.NODE_ENV === 'test'
const NOOP = () => {}
module.exports = {
version,
id: undefined,
api: false,
address: 'record',
directory: path.resolve(os.homedir(), './.record'),
gcInterval: 10000000, // 10mb
chromaprintPath: null,
ffmpegPath: null,
youtubedlPath: null,
logger: {
info: IS_TEST ? NOOP : console.log,
error: IS_TEST ? NOOP : console.error
},
importer: {
enabled: false,
directory: null
},
pubsubMonitor: {
pollInterval: 5000
},
store: {
type: RecordStore.type,
referenceCount: 24,
replicationConcurrency: 128,
localOnly: false,
create: false,
overwrite: true,
syncLocal: true,
replicate: true
},
bitboot: {
enabled: true
},
orbitdb: {
directory: undefined
}
}