[mirotalksfu] - ops

هذا الالتزام موجود في:
Miroslav Pejic
2024-03-10 10:26:46 +01:00
الأصل fc35201fec
التزام e130f8a420
3 ملفات معدلة مع 4 إضافات و7 حذوفات

عرض الملف

@@ -5,9 +5,6 @@ WORKDIR /src
# https://mediasoup.org/documentation/v3/mediasoup/installation/ # https://mediasoup.org/documentation/v3/mediasoup/installation/
ENV MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD="true" ENV MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD="true"
# numWorkers
ENV NUM_CPUS=$(nproc)
COPY package.json . COPY package.json .
RUN \ RUN \

عرض الملف

@@ -761,13 +761,13 @@ function startServer() {
if (config.mediasoup.webRtcServerActive) { if (config.mediasoup.webRtcServerActive) {
// //
log.debug('Create a WebRtcServer', { worker_pid: worker.pid }); log.info('Create a WebRtcServer', { worker_pid: worker.pid });
const webRtcServerOptions = clone(config.mediasoup.webRtcServerOptions); const webRtcServerOptions = clone(config.mediasoup.webRtcServerOptions);
const portIncrement = i; const portIncrement = i;
for (const listenInfo of webRtcServerOptions.listenInfos) { for (const listenInfo of webRtcServerOptions.listenInfos) {
listenInfo.port += portIncrement; listenInfo.port += portIncrement;
} }
//log.debug('WebRtcServer options', { webRtcServerOptions: webRtcServerOptions }); //log.info('WebRtcServer options', { webRtcServerOptions: webRtcServerOptions });
const webRtcServer = await worker.createWebRtcServer(webRtcServerOptions); const webRtcServer = await worker.createWebRtcServer(webRtcServerOptions);
worker.appData.webRtcServer = webRtcServer; worker.appData.webRtcServer = webRtcServer;
} }

عرض الملف

@@ -299,7 +299,7 @@ module.exports = {
}, },
mediasoup: { mediasoup: {
// Worker settings // Worker settings
numWorkers: process.env.NUM_CPUS || require('os').cpus().length, numWorkers: require('os').cpus().length,
worker: { worker: {
rtcMinPort: 40000, rtcMinPort: 40000,
rtcMaxPort: 40100, rtcMaxPort: 40100,
@@ -364,7 +364,7 @@ module.exports = {
{ protocol: 'tcp', ip: '0.0.0.0', announcedAddress: getLocalIp(), port: 44444 }, { protocol: 'tcp', ip: '0.0.0.0', announcedAddress: getLocalIp(), port: 44444 },
], ],
}, },
// WebRtcTransport // WebRtcTransportOptions
webRtcTransport: { webRtcTransport: {
listenInfos: [ listenInfos: [
{ protocol: 'udp', ip: '0.0.0.0', announcedAddress: getLocalIp() }, { protocol: 'udp', ip: '0.0.0.0', announcedAddress: getLocalIp() },