[SOLVED] Videobridge websocket configuration

Hi, i try to config jvb2 with websocket.
i already follow this https://github.com/jitsi/jitsi-videobridge/blob/master/doc/web-sockets.md but no luck.

i don’t see the client requesting websocket to the jvb server.

config i’ve done:
1.openbridgechannel on config.js
image

  1. jvb sip-comm:
org.jitsi.videobridge.ENABLE_STATISTICS=true
org.jitsi.videobridge.STATISTICS_TRANSPORT=muc,colibri
org.jitsi.videobridge.xmpp.user.shard.HOSTNAME=<xmpp domain>
org.jitsi.videobridge.xmpp.user.shard.DOMAIN=auth.<xmpp domain>
org.jitsi.videobridge.xmpp.user.shard.USERNAME=jvb
org.jitsi.videobridge.xmpp.user.shard.PASSWORD=<secret>
org.jitsi.videobridge.xmpp.user.shard.MUC_JIDS=JvbBrewery@internal.auth.<xmpp domain>
org.jitsi.videobridge.xmpp.user.shard.MUC_NICKNAME=jvb-nh-2
org.jitsi.videobridge.xmpp.user.shard.DISABLE_CERTIFICATE_VERIFICATION=true

#websocket
org.jitsi.videobridge.rest.jetty.port=8080
org.jitsi.videobridge.rest.COLIBRI_WS_TLS=true
org.jitsi.videobridge.rest.COLIBRI_WS_DOMAIN=<jvb domain>:4000
org.jitsi.videobridge.rest.COLIBRI_WS_SERVER_ID=jvb-nh-2
  1. nginx config on jvb server
server {
        listen 4000 ssl;
        server_name <jvb domain>;

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_ciphers "EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA256:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:EECDH+aRSA+SHA384:EDH+aRSA+AESGCM:$
        add_header Strict-Transport-Security "max-age=31536000";

        ssl_certificate /home/isrdds/<jvb domain>.crt;
        ssl_certificate_key /home/isrdds/<jvb domain>.key;

        location ~ ^/colibri-ws/jvb-nh-2/(.*) {
                proxy_pass http://127.0.0.1:8080/colibri-ws/jvb-nh-2/$1$is_args$args;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection "upgrade";
                tcp_nodelay on;
        }
}

in the network console on browser I don’t see the client request a websocket to the jvb. just websocket request to the xmpp server.
image

i see this error in jvb log, maybe its related:

2020-04-22 03:47:28.360 SEVERE: [43] [confId=f49acfc07251145a epId=376bac97 gid=ffd29e stats_id=Gerry-W2b conf_name=cobainws] Endpoint.lambda$scheduleEndpointMessageTransportTimeout$7#976: EndpointMessageTransport still not connected.

on meet.jit.si, i see 2 webscoket connection right away when 2 people join in 1 room. is there anything i miss?

never mind, the solution is to change the jetty port to anything except 8080. solved!

1 Like

port 8080 is used to expose stats in JVB, so another port must be used.