【发布时间】: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