Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access API with browser show not found #175

Open
ilhammalik opened this issue Oct 11, 2018 · 1 comment
Open

Cannot access API with browser show not found #175

ilhammalik opened this issue Oct 11, 2018 · 1 comment
Labels

Comments

@ilhammalik
Copy link

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"
@rroemhild
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants