/
spec.js
47 lines (47 loc) · 1.24 KB
/
spec.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
module.exports = pkg => ({
env: {
redisHost: {
description: 'the Redis host',
default: 'localhost'
},
redisPort: {
description: 'the Redis port',
default: 6379
},
namespace: {
description: 'the Redis key namespace',
default: pkg.lastName
},
refileDomain: {
description: 'the Refile domain',
default: 'refile.webserva.com'
}
},
config: env => ({
inq: {
description: 'the queue to import',
default: `${env.namespace}:in:q`
},
outq: {
description: 'the output key queue',
default: `${env.namespace}:out:q`
},
busyq: {
description: 'the pending list for brpoplpush',
default: `${env.namespace}:busy:q`
},
popTimeout: {
description: 'the timeout for brpoplpush',
unit: 'seconds',
default: 10
},
loggerLevel: {
description: 'the logging level',
defaults: {
production: 'info',
test: 'info',
development: 'debug'
}
}
})
});