Giter Club home page Giter Club logo

Comments (14)

fpw23 avatar fpw23 commented on July 21, 2024

I have moved off this project so I don't have anything setup locally to test out your issue but it looks like there is a problem with websockets. If I remember correctly Jiti uses a ws server for the chat features that are baked into the core api. My guess is on your docker container you have to map some more ports. Here is a something from the jitsi community forum about it:

https://community.jitsi.org/t/ports-5222-5269-5280-5347/36862/3

To be sure I would look at the dev tools and see the network tab, it should show all traffic the page attempts to load and if there are any errors.

from telimed.

manang avatar manang commented on July 21, 2024

which port do I have to open?
thanks

from telimed.

manang avatar manang commented on July 21, 2024

I changed the port from 8443 to 443 in docker jitsi meet.
I'm using a self signed certificate.
now the error is the following:

WebSocket connection to 'wss://<my-ip>/xmpp-websocket?room=workshop014' failed: Error in connection establishment: net::ERR_CERT_INVALID

can you tell me how I can disable the cert verification?
Thank you very much

Angelo

from telimed.

manang avatar manang commented on July 21, 2024

Is the websocket mandatory?
thanks

from telimed.

manang avatar manang commented on July 21, 2024

they have just updated the docker-compose, so you can use the websocket.
If I use this approach I obtain an err_cert_invalid.
I hope you can help me.
Thank

from telimed.

fpw23 avatar fpw23 commented on July 21, 2024

The version of jitsi I used when I made this demo required the websockets, it needs them to do the chat feature using XMPP. I don't know much about it, I just focused on the audio/video part of jitsi. Did you try opening the ports on the docker container from that link above?

image

If you use the dev tools on your browser and look at the network tab you should see more details on the failure.

image

You can set the filter for WS (WebSockets) and see the exact port it is trying to reach and details on the failure

from telimed.

manang avatar manang commented on July 21, 2024

I think that my problem is more about the selfisgned certificate.
I opened the ports of WS, if you tell me how I can use your application with selfsigned certs I can solve the issue.
Thank you very much
Angelo

from telimed.

fpw23 avatar fpw23 commented on July 21, 2024

well, self signed is hard because the browser is going to reject it usually, the only thing I can think of trying it making sure everything is bound to localhost. Chrome has a security feature where if the address is localhost instead of an ip it will allow you to do insecure things like use the camera without ssl. Maybe where you set the server url make sure it says localhost and not an ip address. You would also have to make sure the docker jitsi is bound to the internal 127.0.0.1 (localhost) side as well.

I did not run into these issues because I only used the beta jitsi address for my tests. In prod my network guy setup the jitsi server with a non self signed cert so everything just worked.

from telimed.

manang avatar manang commented on July 21, 2024

Hi, I don't undestand why jitsi-meet repo can connect to the videobridge server with self signed certificates and this application no.
thanks for your help

from telimed.

fpw23 avatar fpw23 commented on July 21, 2024

If you use this app and point it to the public jitsi server does it work for you?

from telimed.

manang avatar manang commented on July 21, 2024

Hi, with the public jitsi server yes, it works,
I'm noticing this:
https://github.com/jitsi/jitsi-meet/blob/9fbb35b6e18536a85fc608b0685c71744880a651/webpack.config.js#L36

This is my first time with webpack, I'm noticing that jitsi-meet define a proxy that permits to avoid the cert error.
I don't know if we can do the same with your project.

thank you very much

from telimed.

fpw23 avatar fpw23 commented on July 21, 2024

For this project I just used create-react-app which hides the complexity of webpack. If you want to change webpack settings you will have to eject or use a tool to change the config. Both will take some doing and outside my bandwidth for this project. Sorry.

from telimed.

manang avatar manang commented on July 21, 2024

Hi,
this is an update of you can use this app with jitsi in docker (https://github.com/jitsi/docker-jitsi-meet).
In order, you need:
trusted certified (let's encrypt is available in the docker-jitsi-meet installation, or you have to create self signed certificates + CA authority)
you have to use a configuration file like this https://meet.jit.si/config.js.
In my example I'm not using the websocket, but the rest APIs.
I will push a simple modification next week, maybe it can help other people.

Thanks a lot for your help

from telimed.

fpw23 avatar fpw23 commented on July 21, 2024

Sweet! Thanks for sharing, look forward to seeing your changes!

from telimed.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.