有时候想把会议系统外网的人使用,毕竟腾讯会议有30分钟的限制,所以要外网服务器安装Jitsi Meet。
外网服务器上有Nginx 占用80端口 ,Jitsi Meet 设置为 8443 ,通过Nginx转发到Jitsi Meet 。遇到访问,提示错误。
            
            
              javascript
              
              
            
          
          Logger.js:155 2025-10-01T10:40:14.723Z [index.web] UnhandledError: Uncaught TypeError: Failed to construct 'URL': Invalid URL Script: https://m.mydo-inc.com/libs/app.bundle.min.js?v=8532 Line: 2 Column: 1751823 StackTrace:  TypeError: Invalid URL   /*! For license information please see app.bundle.min.js.LICENSE.txt */
( () => {
    var __webpack_modules__ = {
        26480: function(e, t, n) {
            var r;
            !function(a, i) {
                "use strict";
                var o = "function"
                  , s = "undefined"
                  , l = "object"
                  , c = "string"
                  , u = "model"
                  , d = "name"
                  , p = "type"
                  , h = "vendor"
                  , m = "version"
                  , f = "architecture"
                  , g = "console"
                  , b = "mobile"
                  , y = "tablet"修改 config.js 把端口去掉问题得到解决。分析原因,Jitsi Meet 可以独立的访问,自己可以设置域名,通过Nginx转发返回内容时Jitsi Meet 会带出它自己的访问端口和域名。通过修改config.js ,使其保持一致。
            
            
              shell
              
              
            
          
          cd  /root/.jitsi-meet-cfg/web
vim  config.js  
            
            
              javascript
              
              
            
          
          // Jitsi Meet configuration.
var config = {};
config.hosts = {};
config.hosts.domain = 'meet.jitsi';
var subdir = '<!--# echo var="subdir" default="" -->';
var subdomain = '<!--# echo var="subdomain" default="" -->';
if (subdir.startsWith('<!--')) {
    subdir = '';
}
if (subdomain) {
    subdomain = subdomain.substring(0,subdomain.length-1).split('.').join('_').toLowerCase() + '.';
}
config.hosts.muc = 'muc.' + subdomain + 'meet.jitsi';
//config.bosh = 'https://m.mydo-inc.com:${HTTPS_PORT}/' + subdir + 'http-bind';
config.bosh = 'https://m.mydo-inc.com:/' + subdir + 'http-bind';
//config.websocket = 'wss://m.mydo-inc.com:${HTTPS_PORT}/' + subdir + 'xmpp-websocket';
config.websocket = 'wss://m.mydo-inc.com:/' + subdir + 'xmpp-websocket';
config.bridgeChannel = {
    preferSctp: true
};