代码之家  ›  专栏  ›  技术社区  ›  ken4ward

BigblueButton只在HTTP上服务,不在HTTPS上服务

  •  0
  • ken4ward  · 技术社区  · 4 年前

    我安装在ubuntu16.04上,4核,8gbram。我运行了cerbot命令,它返回了一个祝贺消息,表示它成功了。 这是我第一次安装BigBlueButton。我遵循这个过程,直到我尝试在HTTPS上运行它,一切看起来都很好 https://live.oltega.com

    This site can’t be reached
    live.oltega.com refused to connect.
    Try: Checking the connection
    Checking the proxy and the firewall
    ERR_CONNECTION_REFUSED
    

    当我在HTTP上提供同样的服务时 http://live.oltega.com

    0 回复  |  直到 3 年前
        1
  •  0
  •   Ali Parsa    3 年前

    在获得Let's Encrypt证书之后,您应该配置BBB组件,比如Nginx和Freeswith,以使用HTTPS。 按照上述说明操作 here 总结如下:

    1-配置FreeSWITCH以使用SSL 编辑文件/etc/bigbuebutton/nginx/sip.nginx并更改proxy\u pass行上的协议和端口,如下所示

        location /ws {
      proxy_pass https://203.0.113.1:7443;
      proxy_http_version 1.1;
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "Upgrade";
      proxy_read_timeout 6h;
      proxy_send_timeout 6h;
      client_body_timeout 6h;
      send_timeout 6h;
    }
    

    2-配置BigBlueButton以通过HTTPS加载会话 编辑/usr/share/bbb-web/web-INF/classes/bigbuebutton.properties并更新bigbuebutton.web.serverURL属性以使用HTTPS:

    #----------------------------------------------------
    # This URL is where the BBB client is accessible. When a user successfully
    # enters a name and password, she is redirected here to load the client.
    bigbluebutton.web.serverURL=https://bigbluebutton.example.com
    

    接下来,编辑文件/usr/share/red5/webapps/screenshare/WEB-INF/screenshare.properties并将属性jnlpUrl和jnlpFile更新为HTTPS:

    streamBaseUrl=rtmp://bigbluebutton.example.com/screenshare
    jnlpUrl=https://bigbluebutton.example.com/screenshare
    jnlpFile=https://bigbluebutton.example.com/screenshare/screenshare.jnlp
    

    接下来,您应该执行以下命令:

    $ sudo sed -e 's|http://|https://|g' -i /var/www/bigbluebutton/client/conf/config.xml
    

    打开/usr/share/meteor/bundle/programs/server/assets/app/config/settings.yml编辑和更改:

    kurento:
        wsUrl: ws://bbb.example.com/bbb-webrtc-sfu
    

    kurento:
        wsUrl: wss://bbb.example.com/bbb-webrtc-sfu
    

    note:
        enabled: true
        url: http://bbb.example.com/pad
    

    note:
        enabled: true
        url: https://bbb.example.com/pad
    

    3-接下来,修改录制的创建,以便通过HTTPS提供服务 编辑/usr/local/bigbuebutton/core/scripts/bigbuebutton.yml并按如下方式更改播放协议的值:

    playback_protocol: https
    

    4-如果已安装API演示,请编辑/var/lib/tomcat7/webapps/demo/bbb\u API\u conf.jsp并更改bigbluberbuttonurl use HTTPS的值。

    // This is the URL for the BigBlueButton server
    String BigBlueButtonURL = "https://bigbluebutton.example.com/bigbluebutton/";
    

    5-最后,要应用所做的所有配置更改,必须重新启动BigBlueButton的所有组件:

    $ sudo bbb-conf --restart
    
    推荐文章