[mirotalksfu] - ops
هذا الالتزام موجود في:
@@ -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() },
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم