redis: disable by default when optional

this simply increases complexity of local setups since redis is
only used as a cache and not for persistent data
This commit is contained in:
Girish Ramakrishnan
2025-06-14 10:28:20 +02:00
parent 11a852d49c
commit c44926c2cd
3 changed files with 9 additions and 2 deletions
+1
View File
@@ -186,6 +186,7 @@ async function install(req, res, next) {
if ('enableMailbox' in data && typeof data.enableMailbox !== 'boolean') return next(new HttpError(400, 'enableMailbox must be boolean'));
if ('enableTurn' in data && typeof data.enableTurn !== 'boolean') return next(new HttpError(400, 'enableTurn must be boolean'));
if ('enableRedis' in data && typeof data.enableRedis !== 'boolean') return next(new HttpError(400, 'enableRedis must be boolean'));
if ('cpuQuota' in data && data.cpuQuota !== 'number') return next(new HttpError(400, 'cpuQuota is not a number'));
if ('operators' in req.body && typeof req.body.operators !== 'object') return next(new HttpError(400, 'operators must be an object'));