Skip to content

Commit

Permalink
Merge branch 'improvement/BB-522' into tmp/octopus/w/8.7/improvement/B…
Browse files Browse the repository at this point in the history
  • Loading branch information
bert-e committed Oct 2, 2024
2 parents 92520d5 + d20c311 commit 63be3fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions conf/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@
"host": "127.0.0.1",
"port": 6379
},
"redis": {
"host": "localhost",
"port": 6379
},
"certFilePaths": {
"key": "",
"cert": "",
Expand Down
12 changes: 10 additions & 2 deletions lib/config.joi.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,16 @@ const joiSchema = joi.object({
port: joi.number().default(8900),
},
redis: {
host: joi.string().default('localhost'),
port: joi.number().default(6379),
host: joi.string().when('sentinels', {
is: joi.exist(),
then: joi.forbidden(),
otherwise: joi.required(),
}),
port: joi.number().when('sentinels', {
is: joi.exist(),
then: joi.forbidden(),
otherwise: joi.required(),
}),
name: joi.string().default('backbeat'),
password: joi.string().default('').allow(''),
sentinels: joi.alternatives([joi.string(), joi.array().items(
Expand Down

0 comments on commit 63be3fe

Please sign in to comment.