forked from zendesk/radar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.js
47 lines (44 loc) · 1006 Bytes
/
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
40
41
42
43
44
45
46
47
module.exports = {
// Default (optional)
// Will fallback to localhost:6379
redis_host: 'localhost',
redis_port: 6379,
// (Optional) Only usable if you define use_connection.
// Lets you specify a number of redis options and pick one.
connection_settings: {
legacy: {
host: 'localhost',
port: 6379
},
cluster1: {
// Sentinel master name is required
id: 'mymaster',
sentinels: [
{
host: 'localhost',
port: 26379
}]
},
cluster2: {
id: 'mymaster',
sentinels: [
{
host: 'localhost',
port: 36379
},
{
host: 'localhost',
port: 36380
},
{
host: 'localhost',
port: 36381
}]
}
},
// Only used if a connection_settings hash is present.
// (Optional). will fallback to default if not present.
// use_connection: 'legacy',
// Radar config: Port for radar to run on.
port: 8000
}