[mirotalksfu] - update config

هذا الالتزام موجود في:
Miroslav Pejic
2024-02-21 16:14:46 +01:00
الأصل e13c3e5cd5
التزام 1d9dbe579f
2 ملفات معدلة مع 7 إضافات و6 حذوفات

عرض الملف

@@ -217,7 +217,9 @@ if (!announcedAddress) {
(resp) => {
resp.on('data', (ip) => {
announcedAddress = ip.toString();
config.mediasoup.webRtcTransport.listenInfos[0].announcedAddress = announcedAddress;
config.mediasoup.webRtcTransport.listenInfos.forEach((info) => {
info.announcedAddress = announcedAddress;
});
startServer();
});
},

عرض الملف

@@ -354,11 +354,10 @@ module.exports = {
// WebRtcTransport settings
webRtcTransport: {
listenInfos: [
{
protocol: 'udp',
ip: '0.0.0.0',
announcedAddress: getLocalIp(), // replace by 'public static IPV4 address' https://api.ipify.org (type string --> 'xx.xxx.xxx.xx' not xx.xxx.xxx.xx)
}, //announcedAddress: '' will be auto-detected on server start, for docker localPC set '127.0.0.1' otherwise the 'public static IPV4 address'
{ protocol: 'tcp', ip: '0.0.0.0', announcedAddress: getLocalIp() },
{ protocol: 'udp', ip: '0.0.0.0', announcedAddress: getLocalIp() },
//announcedAddress: replace by 'public static IPV4 address' https://api.ipify.org (type string --> 'xx.xxx.xxx.xx' not xx.xxx.xxx.xx)
//announcedAddress: '' will be auto-detected on server start, for docker localPC set '127.0.0.1' otherwise the 'public static IPV4 address'
],
initialAvailableOutgoingBitrate: 1000000,
minimumAvailableOutgoingBitrate: 600000,