Merge remote-tracking branch 'origin/master' into packaging
This commit is contained in:
commit
e2f860fd9f
|
@ -21,7 +21,7 @@ ejabberd has to validate it externally.
|
||||||
### How to enable
|
### How to enable
|
||||||
|
|
||||||
The simplest way is to just replace default `auth_method` option in
|
The simplest way is to just replace default `auth_method` option in
|
||||||
`ejabberd.cfg` with `{auth_method, http}`.
|
`ejabberd.yml` with `auth_method: http`.
|
||||||
|
|
||||||
However, enabling the module **is not enough!** Please follow
|
However, enabling the module **is not enough!** Please follow
|
||||||
instructions below.
|
instructions below.
|
||||||
|
@ -29,12 +29,12 @@ instructions below.
|
||||||
### Configuration options
|
### Configuration options
|
||||||
|
|
||||||
`ejabberd_auth_http` requires some parameters to function
|
`ejabberd_auth_http` requires some parameters to function
|
||||||
properly. The following options can be set in `auth_opts` tuple in
|
properly. The following options can be set in `auth_opts` in
|
||||||
`ejabberd.cfg`:
|
`ejabberd.yml`:
|
||||||
|
|
||||||
* `host` (mandatory, `string`) - consists of protocol, hostname (or IP) and port (optional). Examples:
|
* `host` (mandatory, `string`) - consists of protocol, hostname (or IP) and port (optional). Examples:
|
||||||
* `{host, "http://localhost:12000"}`
|
* `host: "http://localhost:12000"`
|
||||||
* `{host, "https://10.20.30.40"}`
|
* `host: "https://10.20.30.40"`
|
||||||
* `connection_pool_size` (optional, `integer`, default: 10) - the
|
* `connection_pool_size` (optional, `integer`, default: 10) - the
|
||||||
number of connections open to auth service
|
number of connections open to auth service
|
||||||
* `connection_opts` (optional, default: `[]`) - extra options for
|
* `connection_opts` (optional, default: `[]`) - extra options for
|
||||||
|
|
|
@ -4,21 +4,14 @@
|
||||||
|
|
||||||
Author: Badlop
|
Author: Badlop
|
||||||
Homepage: http://www.ejabberd.im/mod_admin_extra
|
Homepage: http://www.ejabberd.im/mod_admin_extra
|
||||||
Requirements: ejabberd 2.1.10 newer
|
|
||||||
|
|
||||||
This module DOES NOT WORK with any ejabberd 2.0.x or older.
|
|
||||||
If you have some ejabberd 2.0.x, you can still use mod_ctlextra.
|
|
||||||
|
|
||||||
|
|
||||||
CONFIGURATION
|
CONFIGURATION
|
||||||
=============
|
=============
|
||||||
|
|
||||||
Add the module to your ejabberd.cfg, on the modules section:
|
Add the module to your ejabberd.yml, on the modules section:
|
||||||
{modules, [
|
modules:
|
||||||
...
|
mod_admin_extra: {}
|
||||||
{mod_admin_extra, []},
|
|
||||||
...
|
|
||||||
]}.
|
|
||||||
|
|
||||||
The configurable options are:
|
The configurable options are:
|
||||||
- module_resource:
|
- module_resource:
|
||||||
|
@ -30,16 +23,18 @@ In this example configuration, the users vcards can only be modified
|
||||||
by executing mod_admin_extra commands.
|
by executing mod_admin_extra commands.
|
||||||
Notice that this needs the patch
|
Notice that this needs the patch
|
||||||
https://support.process-one.net/browse/EJAB-797
|
https://support.process-one.net/browse/EJAB-797
|
||||||
{acl, adminextraresource, {resource, "modadminextraf8x,31ad"}}.
|
acl:
|
||||||
{access, vcard_set, [
|
adminextraresource:
|
||||||
{allow, adminextraresource},
|
resource: "modadminextraf8x,31ad"
|
||||||
{deny, all}]
|
access:
|
||||||
}.
|
vcard_set:
|
||||||
{modules, [
|
adminextraresource: allow
|
||||||
{mod_admin_extra, [ {module_resource, "modadminextraf8x,31ad"} ]},
|
all: deny
|
||||||
{mod_vcard, [ {access_set, vcard_set} ]},
|
modules:
|
||||||
...
|
mod_admin_extra:
|
||||||
]}.
|
module_resource: "modadminextraf8x,31ad"
|
||||||
|
mod_vcard:
|
||||||
|
access_set: vcard_set
|
||||||
|
|
||||||
|
|
||||||
USAGE
|
USAGE
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
http://www.ejabberd.im/mod_cron
|
http://www.ejabberd.im/mod_cron
|
||||||
Author: Badlop
|
Author: Badlop
|
||||||
Requirements: ejabberd git master
|
|
||||||
|
|
||||||
|
|
||||||
This module allows advanced ejabberd administrators to schedule commands for
|
This module allows advanced ejabberd administrators to schedule commands for
|
||||||
|
|
|
@ -22,7 +22,7 @@ Note: to log the failed authentication attempts, you need to patch ejabberd.
|
||||||
|
|
||||||
1 Copy this file to ejabberd/src/mod_logsession.erl
|
1 Copy this file to ejabberd/src/mod_logsession.erl
|
||||||
2 Recompile ejabberd
|
2 Recompile ejabberd
|
||||||
3 Add to ejabberd.cfg, 'modules' section the basic configuration:
|
3 Add to ejabberd.yml, 'modules' section the basic configuration:
|
||||||
mod_logsession: {}
|
mod_logsession: {}
|
||||||
4 With this configuration, the log files are:
|
4 With this configuration, the log files are:
|
||||||
/tmp/ejabberd_logsession_@HOST@.log
|
/tmp/ejabberd_logsession_@HOST@.log
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
mod_message_log - Log one line per message transmission
|
mod_message_log - Log one line per message transmission
|
||||||
|
|
||||||
Author: Holger Weiss <holger@zedat.fu-berlin.de>
|
Author: Holger Weiss <holger@zedat.fu-berlin.de>
|
||||||
Requirements: ejabberd 13.x or newer
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
Homepage: http://www.ejabberd.im/mod_muc_admin
|
Homepage: http://www.ejabberd.im/mod_muc_admin
|
||||||
Author: Badlop
|
Author: Badlop
|
||||||
Requirements: ejabberd trunk SVN 1699 or newer
|
|
||||||
|
|
||||||
|
|
||||||
This module implements several ejabberd commands that can be
|
This module implements several ejabberd commands that can be
|
||||||
|
@ -14,6 +13,14 @@ It also implements Web Admin pages to view the list of existing
|
||||||
rooms.
|
rooms.
|
||||||
|
|
||||||
|
|
||||||
|
CONFIGURATION
|
||||||
|
=============
|
||||||
|
|
||||||
|
Add the module to your ejabberd.yml, on the modules section:
|
||||||
|
modules:
|
||||||
|
mod_muc_admin: {}
|
||||||
|
|
||||||
|
|
||||||
EJABBERD COMMANDS
|
EJABBERD COMMANDS
|
||||||
=================
|
=================
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
Homepage: http://ejabberd.im/mod_muc_log_http
|
Homepage: http://ejabberd.im/mod_muc_log_http
|
||||||
Author: Badlop
|
Author: Badlop
|
||||||
Requirement: ejabberd git master
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
Homepage: http://ejabberd.jabber.ru/mod_multicast
|
Homepage: http://ejabberd.jabber.ru/mod_multicast
|
||||||
Author: Badlop
|
Author: Badlop
|
||||||
Module for ejabberd master branch
|
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
|
@ -20,8 +19,8 @@ The development of this module is included on a Google Summer of Code 2007 proje
|
||||||
|
|
||||||
1. Compile the module.
|
1. Compile the module.
|
||||||
2. Copy the binary files to ejabberd ebin directory.
|
2. Copy the binary files to ejabberd ebin directory.
|
||||||
3. Edit ejabberd.cfg and add the module to the list of modules:
|
3. Edit ejabberd.yml and add the module to the list of modules:
|
||||||
{mod_multicast, []},
|
mod_multicast: {}
|
||||||
4. Start ejabberd.
|
4. Start ejabberd.
|
||||||
|
|
||||||
|
|
||||||
|
@ -48,31 +47,34 @@ limits:
|
||||||
EXAMPLE CONFIGURATION
|
EXAMPLE CONFIGURATION
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
% Only admins can send packets to multicast service
|
# Only admins can send packets to multicast service
|
||||||
{access, multicast, [{allow, admin}, {deny, all}]}.
|
access:
|
||||||
|
multicast:
|
||||||
|
admin: allow
|
||||||
|
all: deny
|
||||||
|
|
||||||
% If you want to allow all your users:
|
# If you want to allow all your users:
|
||||||
%{access, multicast, [{allow, all}]}.
|
access:
|
||||||
|
multicast:
|
||||||
|
all: allow
|
||||||
|
|
||||||
% This allows both admins and remote users to send packets,
|
# This allows both admins and remote users to send packets,
|
||||||
% but does not allow local users
|
# but does not allow local users
|
||||||
%{acl, allservers, {server_glob, "*"}}.
|
acl:
|
||||||
%{access, multicast, [{allow, admin}, {deny, local}, {allow, allservers}]}.
|
allservers:
|
||||||
|
server_glob: "*"
|
||||||
|
access:
|
||||||
|
multicast:
|
||||||
|
admin: allow
|
||||||
|
local: deny
|
||||||
|
allservers: allow
|
||||||
|
|
||||||
|
|
||||||
{modules, [
|
modules:
|
||||||
...
|
mod_multicast:
|
||||||
{mod_multicast, [
|
host: "multicast.example.org"
|
||||||
%{host, "multicast.example.org"},
|
access: multicast
|
||||||
{access, multicast},
|
limits, "> [ {local,message,40}, {local,presence,infinite}, {remote,message,150} ]."
|
||||||
{limits, [
|
|
||||||
{local, message, 40},
|
|
||||||
{local, presence, infinite},
|
|
||||||
{remote, message, 150}
|
|
||||||
]}
|
|
||||||
]},
|
|
||||||
...
|
|
||||||
]}.
|
|
||||||
|
|
||||||
|
|
||||||
TO DO
|
TO DO
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
Author: Nolan Eakins <sneakin@semanticgap.com>
|
Author: Nolan Eakins <sneakin@semanticgap.com>
|
||||||
Copyright (C) 2008 Nolan Eakins
|
Copyright (C) 2008 Nolan Eakins
|
||||||
|
|
||||||
Requirements: ejabberd trunk SVN 2025 (ejabberd 2.1.0, once released)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
This is an ejabberd module that adds an HTTP handler that allows HTTP
|
This is an ejabberd module that adds an HTTP handler that allows HTTP
|
||||||
|
@ -20,27 +18,21 @@ This module can also be used as a frontend to execute ejabberd commands.
|
||||||
=============
|
=============
|
||||||
|
|
||||||
To use this module, follow the general build instructions, and configure
|
To use this module, follow the general build instructions, and configure
|
||||||
in ejabberd.cfg as described.
|
in ejabberd.yml as described.
|
||||||
|
|
||||||
Enable the module:
|
Enable the module:
|
||||||
{modules,
|
modules:
|
||||||
[
|
mod_rest:
|
||||||
{mod_rest, [ {allowed_ips, [ {127,0,0,1} ]} ]},
|
allowed_ips:
|
||||||
...
|
- "> {127,0,0,1} ."
|
||||||
]
|
|
||||||
}.
|
|
||||||
|
|
||||||
And enable the HTTP request handler in the listen section:
|
And enable the HTTP request handler in the listen section:
|
||||||
{listen,
|
listen:
|
||||||
[
|
-
|
||||||
...
|
port: 5285
|
||||||
{5285, ejabberd_http, [
|
module: ejabberd_http
|
||||||
{request_handlers, [
|
request_handlers:
|
||||||
{["rest"], mod_rest}
|
"/rest": mod_rest
|
||||||
]}
|
|
||||||
]}
|
|
||||||
]
|
|
||||||
}.
|
|
||||||
|
|
||||||
With that configuration, you can send HTTP POST requests to the URL:
|
With that configuration, you can send HTTP POST requests to the URL:
|
||||||
http://localhost:5285/rest
|
http://localhost:5285/rest
|
||||||
|
@ -70,7 +62,7 @@ Configurable options:
|
||||||
There is more information about AccessCommands in the ejabberd Guide.
|
There is more information about AccessCommands in the ejabberd Guide.
|
||||||
Default value: []
|
Default value: []
|
||||||
|
|
||||||
Complex example configuration:
|
Complex example configuration (works only when set in an old-format ejabberd.cfg file:
|
||||||
{modules,
|
{modules,
|
||||||
[
|
[
|
||||||
{mod_rest, [
|
{mod_rest, [
|
||||||
|
|
|
@ -2,13 +2,11 @@
|
||||||
mod_s2s_log
|
mod_s2s_log
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Requirements: ejabberd SVN r1235 trunk or 2.0.x branch
|
|
||||||
(ejabberd 2.0.1 or newer is required)
|
|
||||||
|
|
||||||
|
|
||||||
This module can be use to keep a track of other XMPP servers your server has
|
This module can be use to keep a track of other XMPP servers your server has
|
||||||
been connected with.
|
been connected with.
|
||||||
|
|
||||||
You can use it by adding the following line in the modules section of
|
You can use it by adding the following line in the modules section of
|
||||||
ejabberd.cfg:
|
ejabberd.yml:
|
||||||
{mod_s2s_log, [{filename, "/path/to/s2s.log"}]}
|
mod_s2s_log:
|
||||||
|
filename: "/path/to/s2s.log"
|
||||||
|
|
|
@ -62,6 +62,6 @@ administrators.
|
||||||
BASIC CONFIGURATION
|
BASIC CONFIGURATION
|
||||||
===================
|
===================
|
||||||
|
|
||||||
Add the module to your ejabberd.cfg, on the modules section:
|
Add the module to your ejabberd.yml, on the modules section:
|
||||||
modules:
|
modules:
|
||||||
mod_shcommands: {}
|
mod_shcommands: {}
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
Homepage: http://www.ejabberd.im/mod_statsdx
|
Homepage: http://www.ejabberd.im/mod_statsdx
|
||||||
Author: Badlop
|
Author: Badlop
|
||||||
Requirements: ejabberd 2.1.x
|
|
||||||
|
|
||||||
|
|
||||||
mod_statsdx
|
mod_statsdx
|
||||||
|
@ -16,11 +15,9 @@ Web Admin and two ejabberd commands to view the information.
|
||||||
CONFIGURE
|
CONFIGURE
|
||||||
---------
|
---------
|
||||||
|
|
||||||
Enable the module in ejabberd.cfg for example with a basic configuration:
|
Enable the module in ejabberd.yml for example with a basic configuration:
|
||||||
{modules, [
|
modules:
|
||||||
...
|
mod_statsdx: {}
|
||||||
{mod_statsdx, []}
|
|
||||||
]}.
|
|
||||||
|
|
||||||
Configurable options:
|
Configurable options:
|
||||||
hooks: Set to 'true' to enable hooks and related statistics.
|
hooks: Set to 'true' to enable hooks and related statistics.
|
||||||
|
@ -32,10 +29,9 @@ Configurable options:
|
||||||
EXAMPLE CONFIGURATION
|
EXAMPLE CONFIGURATION
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
{modules, [
|
modules:
|
||||||
...
|
mod_statsdx:
|
||||||
{mod_statsdx, [{hooks, true}]}
|
hooks: true
|
||||||
]}.
|
|
||||||
|
|
||||||
|
|
||||||
FEATURE REQUESTS
|
FEATURE REQUESTS
|
||||||
|
@ -65,11 +61,9 @@ text file with descriptions and raw text file (for MRTG, RRDTool...).
|
||||||
|
|
||||||
This module requires mod_statsdx.
|
This module requires mod_statsdx.
|
||||||
|
|
||||||
Enable the module in ejabberd.cfg for example with a basic configuration:
|
Enable the module in ejabberd.yml for example with a basic configuration:
|
||||||
{modules, [
|
modules:
|
||||||
...
|
mod_stats2file: {}
|
||||||
{mod_stats2file, []}
|
|
||||||
]}.
|
|
||||||
|
|
||||||
Configurable options:
|
Configurable options:
|
||||||
interval: Time between updates, in minutes (default: 5)
|
interval: Time between updates, in minutes (default: 5)
|
||||||
|
@ -82,14 +76,11 @@ Configurable options:
|
||||||
EXAMPLE CONFIGURATION
|
EXAMPLE CONFIGURATION
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
{modules, [
|
modules:
|
||||||
...
|
mod_stats2file:
|
||||||
{mod_stats2file, [{interval, 60},
|
interval: 60
|
||||||
{type, txt},
|
type: txt
|
||||||
{split, true},
|
split: true
|
||||||
{basefilename, "/var/www/stats"},
|
basefilename: "/var/www/stats"
|
||||||
{hosts, ["localhost", "server3.com"]}
|
hosts: ["localhost", "server3.com"]
|
||||||
]}
|
|
||||||
]}.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ No web server, database, additional libraries or programs are required.
|
||||||
|
|
||||||
3. Copy the directory data/pixmaps to a directory you prefer.
|
3. Copy the directory data/pixmaps to a directory you prefer.
|
||||||
|
|
||||||
4. Edit ejabberd.cfg and add the HTTP and module definitions:
|
4. Edit ejabberd.yml and add the HTTP and module definitions:
|
||||||
|
|
||||||
listen:
|
listen:
|
||||||
-
|
-
|
||||||
|
@ -43,7 +43,6 @@ listen:
|
||||||
"presence": mod_webpresence
|
"presence": mod_webpresence
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
[...]
|
|
||||||
mod_webpresence:
|
mod_webpresence:
|
||||||
pixmaps_path: "/path/to/pixmaps"
|
pixmaps_path: "/path/to/pixmaps"
|
||||||
|
|
||||||
|
@ -122,12 +121,10 @@ listen:
|
||||||
-
|
-
|
||||||
port: 5280
|
port: 5280
|
||||||
module: ejabberd_http
|
module: ejabberd_http
|
||||||
[...]
|
|
||||||
request_handlers:
|
request_handlers:
|
||||||
"presence": mod_webpresence
|
"presence": mod_webpresence
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
[...]
|
|
||||||
mod_webpresence:
|
mod_webpresence:
|
||||||
pixmaps_path: "/path/to/pixmaps"
|
pixmaps_path: "/path/to/pixmaps"
|
||||||
|
|
||||||
|
@ -139,12 +136,10 @@ listen:
|
||||||
-
|
-
|
||||||
port: 80
|
port: 80
|
||||||
module: ejabberd_http
|
module: ejabberd_http
|
||||||
[...]
|
|
||||||
request_handlers:
|
request_handlers:
|
||||||
"status": mod_webpresence
|
"status": mod_webpresence
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
[...]
|
|
||||||
mod_webpresence:
|
mod_webpresence:
|
||||||
host: "webstatus.@HOST@"
|
host: "webstatus.@HOST@"
|
||||||
access: local
|
access: local
|
||||||
|
|
Loading…
Reference in New Issue