miroslavpejic85 / mirotalksfu

🏆 WebRTC - SFU - Simple, Secure, Scalable Real-Time Video Conferences Up to 8k, compatible with all browsers and platforms.
https://sfu.mirotalk.com
GNU Affero General Public License v3.0
2.15k stars 340 forks source link

Blank Page After Joining On Public Url #155

Closed abdullahIsa closed 5 months ago

abdullahIsa commented 5 months ago

Hello i am self hosting this project using docker in a vm and i kept getting blank page after joining on a public url, i am using Ubunut + portainer + nginxproxymanager + cloudflare and so far works perfectly on vm localhost or serverPublicIP:port but when i go to public url that i made and after writing name to join i just see a blank page, may i know what i am doing wrong thanks.

Config: i added serverPublicIP which is the vm public ip

// WebRtcServerOptions
    webRtcServerActive: false,
    webRtcServerOptions: {
      listenInfos: [
        // { protocol: 'udp', ip: '0.0.0.0', announcedAddress: IPv4, port: 40000 },
        // { protocol: 'tcp', ip: '0.0.0.0', announcedAddress: IPv4, port: 40000 },
        {
          protocol: 'udp',
          ip: '0.0.0.0',
          announcedAddress: IPv4,
          portRange: { min: 40000, max: 40000 + numWorkers },
        },
        {
          protocol: 'tcp',
          ip: '0.0.0.0',
          announcedAddress: IPv4,
          portRange: { min: 40000, max: 40000 + numWorkers },
        },
      ],
    },
    // WebRtcTransportOptions
    webRtcTransport: {
      listenInfos: [
        // { protocol: 'udp', ip: IPv4, portRange: { min: 40000, max: 40100 } },
        // { protocol: 'tcp', ip: IPv4, portRange: { min: 40000, max: 40100 } },
        {
          protocol: 'udp',
          ip: '0.0.0.0',
          announcedAddress: serverPublicIP, // IPv4
          portRange: { min: 40000, max: 40100 },
        },
        {
          protocol: 'tcp',
          ip: '0.0.0.0',
          announcedAddress: serverPublicIP, // IPv4
          portRange: { min: 40000, max: 40100 },
        },
      ],
      initialAvailableOutgoingBitrate: 1000000,
      minimumAvailableOutgoingBitrate: 600000,
      maxSctpMessageSize: 262144,
      maxIncomingBitrate: 1500000,
    },
    //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'
miroslavpejic85 commented 5 months ago

For questions and support, please join our Discord forum. Thank you!