大多数人将主机与主机名 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}
]},