[mirotalksfu] - Improve config.js.template, add .env.template, update dep

هذا الالتزام موجود في:
Miroslav Pejic
2025-03-29 00:54:08 +01:00
الأصل 531b1342c5
التزام e3511513bc
19 ملفات معدلة مع 1594 إضافات و834 حذوفات

عرض الملف

@@ -6,21 +6,21 @@ const colors = require('colors');
const config = require('./config');
config.console.colors ? colors.enable() : colors.disable();
config.system?.console?.colors ? colors.enable() : colors.disable();
const options = {
depth: null,
colors: config.console.colors,
colors: config.system?.console?.colors || false,
};
module.exports = class Logger {
constructor(appName = 'miroTalkSfu') {
this.appName = colors.yellow(appName);
this.debugOn = config.console.debug;
this.debugOn = config.system?.console?.debug || true;
this.timeStart = Date.now();
this.timeEnd = null;
this.timeElapsedMs = null;
this.tzOptions = {
timeZone: process.env.TZ || config.console.timeZone || 'UTC',
timeZone: process.env.TZ || config.system?.console?.timeZone || 'UTC',
hour12: false,
};
}