rroemhild / docker-ejabberd

Dockerfile for Ejabberd server
MIT License
268 stars 160 forks source link

Cannot access API with browser show not found #175

Open ilhammalik opened 5 years ago

ilhammalik commented 5 years ago

i'm access 5280/api/register not found but i have configuration

Configure http_mod_api :

cd /opt/ejabberd-16.09/conf sudo vi ejabberd.yml

Locate Port: 5280 and update following

request_handler: "/websocket": ejabberd_http_ws "/api": mod_http_api

modules: mod_http_api: admin_ip_access: admin_ip_access_rule

access: admin_ip_access_rule: admin_ip_acl:

acl: admin_ip_acl: ip:

rroemhild commented 5 years ago

I think there is only POST method available: https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#register