feat: sentinel configuraiton (#372)

* feat: sentinel configuraiton

* fixed

* fix jslint
This commit is contained in:
Hoan Luu Huu
2023-06-07 21:40:31 +07:00
committed by GitHub
parent 30beb9c093
commit 354818b974
4 changed files with 39 additions and 11 deletions

View File

@@ -10,6 +10,7 @@ const {
JAMBONES_FREESWITCH,
JAMBONES_REDIS_HOST,
JAMBONES_REDIS_PORT,
JAMBONES_REDIS_SENTINELS,
SMPP_URL,
JAMBONES_TIME_SERIES_HOST,
JAMBONES_ESL_LISTEN_ADDRESS,
@@ -172,7 +173,7 @@ function installSrfLocals(srf, logger) {
retrieveByPatternSortedSet,
sortedSetLength,
sortedSetPositionByPattern
} = require('@jambonz/realtimedb-helpers')({
} = require('@jambonz/realtimedb-helpers')(JAMBONES_REDIS_SENTINELS || {
host: JAMBONES_REDIS_HOST,
port: JAMBONES_REDIS_PORT || 6379
}, logger, tracer);
@@ -180,7 +181,7 @@ function installSrfLocals(srf, logger) {
synthAudio,
getNuanceAccessToken,
getIbmAccessToken,
} = require('@jambonz/speech-utils')({
} = require('@jambonz/speech-utils')(JAMBONES_REDIS_SENTINELS || {
host: JAMBONES_REDIS_HOST,
port: JAMBONES_REDIS_PORT || 6379
}, logger, tracer);