【问题标题】:How to connect converse.js with openfire?如何将 converse.js 与 openfire 连接?
【发布时间】:2015-04-11 02:53:21
【问题描述】:

我已将 openfire 作为 xmmp converse.js 作为服务器和聊天客户端以及操作系统 Windows 8 安装。我用 pidgin 探测 openfire 并运行。我无法将 converse.js 与 openfire 连接,我做了以下操作: - 我在 openfire 中启用了 HTTP 绑定

-我修改converse.js的索引:

require(['converse'], function (converse) {
 converse.initialize({
 auto_list_rooms: false,
 auto_subscribe: false,
 bosh_service_url: 'http://localhost:7070/http-bind/',
 hide_muc_server: false,
 i18n: locales.en, // Refer to ./locale/locales.js to see which locales are supported
 prebind: false,
 show_controlbox_by_default: true,
 roster_groups: true
 });
  });

-我去了防火墙并启用了连接所需的端口(5222、5229、7070 和 7443)

-我在 openfire 中插入值为 16 的 xmpp.httpbind.worker.threads 和 xmpp.client.processing.threads 属性

-我修改了 apache httpd.conf:我启用了 LoadModule proxy_http_module 和 LoadModule proxy_module 并添加了:

ProxyRequests 关闭

ProxyPass / http-bind http://127.0.0.1:7070/http-bind/

ProxyPassReverse / http-bind http://127.0.0.1:7070/http-bind/

当我使用 openfire 的用户登录时,窗口保持连接状态。

如果有人有关于如何连接 openfire converse.js 的指南,我会有所帮助。

感谢和抱歉我的英语

【问题讨论】:

    标签: apache openfire converse.js


    【解决方案1】:

    您的 bosh_service_url 实际上应该是“http://localhost/http-bind/”,因为您正在运行代理服务器。我假设您的 apache 服务器在标准端口 80 上运行。尽管如果您只是关闭 apache,您应该能够使用当前的 converse.js 配置直接连接到 openfire。

    【讨论】:

      猜你喜欢
      • 2018-07-15
      • 2015-04-01
      • 1970-01-01
      • 2014-08-15
      • 2021-11-03
      • 2013-07-26
      • 2015-05-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多