[mirotalksfu] - add global participant limit per room
هذا الالتزام موجود في:
@@ -24,6 +24,7 @@ const dotenv = require('dotenv').config();
|
||||
const packageJson = require('../../package.json');
|
||||
const os = require('os');
|
||||
const fs = require('fs');
|
||||
const { Moderations } = require('openai/resources/moderations.js');
|
||||
const splitChar = ',';
|
||||
|
||||
// ==============================================
|
||||
@@ -1290,6 +1291,23 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* Global Moderation Settings
|
||||
* ========================
|
||||
* Controls room participant limits and moderation features.
|
||||
* This section defines how many participants can join a room
|
||||
* and whether moderation features are enabled.
|
||||
* Core Settings:
|
||||
* - maxParticipants: Maximum number of participants allowed in a room
|
||||
* - moderation: Object containing moderation settings
|
||||
* - room: Object containing room-specific moderation settings
|
||||
*/
|
||||
moderation: {
|
||||
room: {
|
||||
maxParticipants: parseInt(process.env.ROOM_MAX_PARTICIPANTS) || 1000, // Maximum participants per room
|
||||
},
|
||||
},
|
||||
|
||||
// ==============================================
|
||||
// 9. Mediasoup (WebRTC) Configuration
|
||||
// ==============================================
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم