docker-ejabberd icon indicating copy to clipboard operation
docker-ejabberd copied to clipboard

Cannot access API with browser show not found

Open ilhammalik opened this issue 5 years ago • 1 comments

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:

  • change password
  • add_rosteritem
  • register
  • delete_rosteritem
  • send_message

acl: admin_ip_acl: ip:

  • "x.x.x.x/8"

ilhammalik avatar Oct 11 '18 11:10 ilhammalik

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

rroemhild avatar Oct 11 '18 12:10 rroemhild