mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Expand ejabberd.yml.example by enabling mod_http_api with couple commands
This commit is contained in:
parent
6c0419db2b
commit
cb0627e6b2
@ -182,6 +182,7 @@ listen:
|
|||||||
module: ejabberd_http
|
module: ejabberd_http
|
||||||
request_handlers:
|
request_handlers:
|
||||||
"/websocket": ejabberd_http_ws
|
"/websocket": ejabberd_http_ws
|
||||||
|
"/api": mod_http_api
|
||||||
## "/pub/archive": mod_http_fileserver
|
## "/pub/archive": mod_http_fileserver
|
||||||
web_admin: true
|
web_admin: true
|
||||||
http_bind: true
|
http_bind: true
|
||||||
@ -534,30 +535,43 @@ access_rules:
|
|||||||
##
|
##
|
||||||
## By default "console commands" section allow executing all commands
|
## By default "console commands" section allow executing all commands
|
||||||
## issued using ejabberdctl command, and "admin access" section allows
|
## issued using ejabberdctl command, and "admin access" section allows
|
||||||
## users in admin acl to execute all commands except start and stop
|
## users in admin acl that connect from 127.0.0.1 to execute all
|
||||||
## with any available access method (ejabberdctl, http-api, xmlrpc
|
## commands except start and stop with any available access method
|
||||||
## depending what is enabled on server).
|
## (ejabberdctl, http-api, xmlrpc depending what is enabled on server).
|
||||||
##
|
##
|
||||||
## Remember to not remove "console commands" section when doing modifications
|
## If you remove "console commands" there will be one added by
|
||||||
## or ejabberdctl will not be able to execute commands!
|
## default allowing executing all commands, but if you just change
|
||||||
|
## permissions in it, version from config file will be used instead
|
||||||
|
## of default one.
|
||||||
##
|
##
|
||||||
##
|
api_permissions:
|
||||||
## api_permissions:
|
"console commands":
|
||||||
## "console commands":
|
from:
|
||||||
## from:
|
- ejabberd_ctl
|
||||||
## - ejabberd_ctl
|
who: all
|
||||||
## who: all
|
what: "*"
|
||||||
## what: "*"
|
"admin access":
|
||||||
## "admin access":
|
who:
|
||||||
## who:
|
- access:
|
||||||
## - admin
|
- allow:
|
||||||
## - oauth:
|
- ip: "127.0.0.1/8"
|
||||||
## - scope: "ejabberd:admin"
|
- acl: admin
|
||||||
## - admin
|
- oauth:
|
||||||
## what:
|
- scope: "ejabberd:admin"
|
||||||
## - "*"
|
- access:
|
||||||
## - "!stop"
|
- allow:
|
||||||
## - "!start"
|
- ip: "127.0.0.1/8"
|
||||||
|
- acl: admin
|
||||||
|
what:
|
||||||
|
- "*"
|
||||||
|
- "!stop"
|
||||||
|
- "!start"
|
||||||
|
"public commands":
|
||||||
|
who:
|
||||||
|
- ip: "127.0.0.1/8"
|
||||||
|
what:
|
||||||
|
- "status"
|
||||||
|
- "connected_users_number"
|
||||||
|
|
||||||
## By default the frequency of account registrations from the same IP
|
## By default the frequency of account registrations from the same IP
|
||||||
## is limited to 1 account every 10 minutes. To disable, specify: infinity
|
## is limited to 1 account every 10 minutes. To disable, specify: infinity
|
||||||
@ -714,6 +728,7 @@ modules:
|
|||||||
## PKIX authentication. Make sure you have proper certificates installed
|
## PKIX authentication. Make sure you have proper certificates installed
|
||||||
## and check your accessibility at https://xmpp.net/
|
## and check your accessibility at https://xmpp.net/
|
||||||
mod_s2s_dialback: {}
|
mod_s2s_dialback: {}
|
||||||
|
mod_http_api: {}
|
||||||
|
|
||||||
##
|
##
|
||||||
## Enable modules with custom options in a specific virtual host
|
## Enable modules with custom options in a specific virtual host
|
||||||
|
Loading…
Reference in New Issue
Block a user