forked from perforce/helix-authentication-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsentinel.config.cjs
31 lines (31 loc) · 961 Bytes
/
sentinel.config.cjs
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
//
// Example configuration file for use with Redis Sentinel.
//
// See the setting named SENTINEL_CONFIG_FILE in the documentation
// https://www.perforce.com/manuals/helix-auth-svc/Content/HAS/configuring-has.html
// for more information.
//
module.exports = {
name: 'mymaster',
// password for connecting to Sentinel (optional)
sentinelPassword: 'keyboard cat',
sentinels: [
{ host: '192.168.56.31', port: 26379 },
{ host: '192.168.56.32', port: 26379 },
{ host: '192.168.56.33', port: 26379 }
],
// TLS for connecting to Redis servers (optional)
tls: {
cert: 'containers/redis/client.crt',
key: 'containers/redis/client.key',
ca: ['containers/redis/ca.crt'],
rejectUnauthorized: false
},
// TLS for connecting to Redis sentinels (optional)
sentinelTLS: {
cert: 'containers/redis/client.crt',
key: 'containers/redis/client.key',
ca: ['containers/redis/ca.crt'],
rejectUnauthorized: false
}
}