@vulkano/core 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bootstrap/server.js +23 -1
- package/package.json +1 -1
package/bootstrap/server.js
CHANGED
|
@@ -319,7 +319,7 @@ module.exports = function loadServer() {
|
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
// ---------------
|
|
322
|
-
// Permission Policy
|
|
322
|
+
// Permission Policy - File: app/config/express/permissionPolicy.js
|
|
323
323
|
// ---------------
|
|
324
324
|
const {
|
|
325
325
|
enabled: ppEnabled,
|
|
@@ -347,6 +347,28 @@ module.exports = function loadServer() {
|
|
|
347
347
|
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
+
// ---------------
|
|
351
|
+
// REDIS - File: app/config/redis.js
|
|
352
|
+
// ---------------
|
|
353
|
+
const {
|
|
354
|
+
enabled: redisEnabled
|
|
355
|
+
} = app.config.redis || {};
|
|
356
|
+
|
|
357
|
+
app.redisClient = null;
|
|
358
|
+
|
|
359
|
+
if (redisEnabled === true) {
|
|
360
|
+
|
|
361
|
+
const {
|
|
362
|
+
redis
|
|
363
|
+
} = app.config || {};
|
|
364
|
+
|
|
365
|
+
const rClient = socketRedis(redis);
|
|
366
|
+
rClient.on('error', (err) => console.log('Redis Client Error', err));
|
|
367
|
+
|
|
368
|
+
app.redisClient = await rClient.connect();
|
|
369
|
+
|
|
370
|
+
}
|
|
371
|
+
|
|
350
372
|
// ---------------
|
|
351
373
|
// VIEWS
|
|
352
374
|
// ---------------
|