4

我有一个使用 ejabberd2 的聊天应用程序。现在,我需要通过聊天消息传输文件。我只是mod_proxy65ejabberd.cfg文件中配置并打开端口7777。但发送文件失败。

myejabberd.cfg设置

{mod_proxy65,  [
                  {ip, {118,132,178,95}},
                  {name, "SOCKS5 Bytestreams"},
                  {host, "proxy.amadoa.org"}
                 ]},

有人知道我如何mod_proxy65在 ejabberd2 中启用吗?我需要在这里安装任何额外的模块吗?

高度赞赏帮助。谢谢

4

1 回答 1

3

大多数人将主机与主机名 ejabberd 配置混淆,主机名是您应该提供公共 IP 或 www.domain.com 的位置,其中主机是您为 ejabberd 服务器提供的逻辑名称;它默认为 proxy.domain.com,

而且IP地址是Ejabberd监听的接口IP,所以应该是本地地址。Llike: 192.168.1.10监听一个接口,或者0.0.0.0监听所有接口,或者127.0.0.1只允许本地文件传输。

对我有用的配置示例:

{mod_proxy65,  [
                  {host, "proxy.domain.com"}, %% defines the Jabber ID of service. If not specified, Jabber ID will be hostname of  the virtual host with the prefix 'proxy'.

                  %%{ip, {192,168,1,90}}, %% this line works, or use the below line
                  {ip, {0,0,0,0}}, %% 127.0.0.1 by default, make it 0.0.0.0 to listen on all interfaces, or the ip of specific interface

                  {hostname, "www.domain.com"}, % useful service run behind a NAT. default is value of ip option. Ex: "proxy.mydomain.org", "200.150.100.50"
                  {port, 7777}, %% Default, we don't need to add
                  {access, all}, %% Default, we don't need to add
                  {shaper, c2s_shaper}
                 ]},
于 2013-10-30T14:11:15.310 回答