当我执行 bin/mongooseim 启动并且 mongooseim 正在运行时,我将我的 url127.0.0.1:5280/
作为结果放在 web 上一个白页,我认为这意味着ejabberd_cowboy
(具有端口 5280)正在侦听但我没有接口以 ejabberd 着称。
在 ejabberd.cfg 中,我有 Cowboy 的这些行
{listen,
[
%% HTTP endpoints
{ {{cowboy_port}}, ejabberd_cowboy, [
{num_acceptors, 10},
{max_connections, 1024},
{modules, [
Modules used here should also be listed in the MODULES section.
{"localhost", "/api", mongoose_api,
[{handlers,[mongoose_api_metrics,mongoose_api_users]}]},
{"_", "/http-bind", mod_bosh},
{"_", "/ws-xmpp", mod_websockets}
%% Uncomment to serve static files
%{"_", "/static/[...]", cowboy_static,
% {dir, "/var/www", [{mimetypes, cow_mimetypes, all}]}
%},
]}]},