mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2025-12-19 04:27:46 +00:00
Feat/cli remove fs (#116)
* support draining feature server manually * support draining feature server manually * support CLI to add or remove feature server * wip * wip * wip * add redis key for feature server and integration test * wip
This commit is contained in:
4
app.js
4
app.js
@@ -17,6 +17,7 @@ const {
|
||||
NODE_ENV,
|
||||
SBC_PUBLIC_ADDRESS_KEEP_ALIVE_IN_MILISECOND
|
||||
} = require('./lib/config');
|
||||
|
||||
assert.ok(JAMBONES_MYSQL_HOST &&
|
||||
JAMBONES_MYSQL_USER &&
|
||||
JAMBONES_MYSQL_PASSWORD &&
|
||||
@@ -260,6 +261,9 @@ srf.use('options', [
|
||||
srf.register(require('./lib/register')({logger}));
|
||||
srf.options(require('./lib/options')({srf, logger}));
|
||||
|
||||
// Start CLI runtime config server with access to srf.locals
|
||||
require('./lib/cli/runtime-config').initialize(srf.locals, logger);
|
||||
|
||||
setInterval(async() => {
|
||||
const count = await srf.locals.registrar.getCountOfUsers();
|
||||
debug(`count of registered users: ${count}`);
|
||||
|
||||
Reference in New Issue
Block a user