cnetos7 jitsi docker 局域网部署

参考文档:https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-docker#security-note

                  https://github.com/jitsi/docker-jitsi-meet

1、步骤:

 

  • Download and extract the latest release

    Alternatively, to test the latest changes clone the repository:

    git clone https://github.com/jitsi/docker-jitsi-meet && cd docker-jitsi-meet
    
  • Create a .env file by copying and adjusting env.example:

    cp env.example .env
    
  • Set strong passwords in the security section options of .env file by running the following bash script

    ./gen-passwords.sh
    
  • Create required CONFIG directories

    mkdir -p ~/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri}
    
    echo web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri | % { mkdir "~/.jitsi-meet-cfg/$_" }
    
    • For linux:
    • For Windows:
  • Run docker-compose up -d 

2、此时运行https://172.18.83.77:8443会有一些问题,需要修改配置文件,如下:

      2.1 修改   .env 文件     vi  .env

        


# System time zone
TZ=Asia/Shanghai

# Public URL for the web service (required)
PUBLIC_URL=https://172.18.83.77:8443

# IP address of the Docker host
# See the "Running behind NAT or on a LAN environment" section in the Handbook:
# https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-docker#running-behind-nat-or-on-a-lan-environment
DOCKER_HOST_ADDRESS=172.18.83.77      #这里是服务器ip地址,不是docker容器ip





# 开启权限,需要进入到prosody 容器中配置新用户
# Enable authentication
 ENABLE_AUTH=1

# Enable guest access
 ENABLE_GUESTS=1

# Select authentication type: internal, jwt or ldap
 AUTH_TYPE=internal

新加用户:

docker-compose exec prosody /bin/bash
prosodyctl --config /config/prosody.cfg.lua register TheDesiredUsername meet.jitsi TheDesiredPassword

 此时用户名为

TheDesiredUsername

密码为

TheDesiredPassword

 查看所有用户

find /config/data/meet%2ejitsi/accounts -type f -exec basename {} .dat \;

 3、容器化后会生成  .jitsi-meet-cfg  文件夹,里面是一些配置文件

        3.1 进入到web,修改config

               config.websocket = 'wss://172.18.83.77:8443/xmpp-websocket';

        3.2 容器化里面带了nginx,所以不需要配置nginx,里面证书也有

        3.3 docker-compose.yml 暂时不需要更改

4、在.jitsi-meet-cfg/jvb/sip-communicator.properties中,不需要手动改,在.env里面配置


              org.ice4j.ice.harvest.NAT_HARVESTER_LOCAL_ADDRESS=172.23.0.5                       //内网容器ip
              org.ice4j.ice.harvest.NAT_HARVESTER_PUBLIC_ADDRESS=172.18.83.77                  //外网ip,也是服务器ip

5、此时重新  docker-compose up -d 就可以开启视频会议了,摸索了几天终于搞定了,之前一直卡在没有配置PUBLIC_ADDRESS,导致不能看到对方视频。。。。。

6、暂时还没测将服务器断网是否成功,可能还要配置TURN server。。。。

              

 


版权声明:本文为wudiansheng原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。