2007-11-26 15:35:53 +01:00
|
|
|
%%%
|
|
|
|
%%% ejabberd configuration file
|
|
|
|
%%%
|
|
|
|
|
|
|
|
%%% The parameters used in this configuration file are explained in more detail
|
|
|
|
%%% in the ejabberd Installation and Operation Guide.
|
|
|
|
%%% Please consult the Guide in case of doubts, it is included in
|
|
|
|
%%% your copy of ejabberd, and is also available online at
|
|
|
|
%%% http://www.process-one.net/en/ejabberd/docs/
|
|
|
|
|
|
|
|
%%% This configuration file contains Erlang terms.
|
|
|
|
%%% In case you want to understand the syntax, here are the concepts:
|
|
|
|
%%%
|
|
|
|
%%% - The character to comment a line is %
|
|
|
|
%%%
|
|
|
|
%%% - Each term ends in a dot, for example:
|
|
|
|
%%% override_global.
|
|
|
|
%%%
|
|
|
|
%%% - A tuple has a fixed definition, its elements are
|
|
|
|
%%% enclosed in {}, and separated with commas:
|
|
|
|
%%% {loglevel, 4}.
|
|
|
|
%%%
|
|
|
|
%%% - A list can have as many elements as you want,
|
|
|
|
%%% and is enclosed in [], for example:
|
|
|
|
%%% [http_poll, web_admin, tls]
|
|
|
|
%%%
|
|
|
|
%%% - A keyword of ejabberd is a word in lowercase.
|
|
|
|
%%% The strings are enclosed in "" and can have spaces, dots...
|
|
|
|
%%% {language, "en"}.
|
|
|
|
%%% {ldap_rootdn, "dc=example,dc=com"}.
|
|
|
|
%%%
|
|
|
|
%%% - This term includes a tuple, a keyword, a list and two strings:
|
|
|
|
%%% {hosts, ["jabber.example.net", "im.example.com"]}.
|
|
|
|
%%%
|
|
|
|
|
|
|
|
|
|
|
|
%%% =======================
|
|
|
|
%%% OVERRIDE STORED OPTIONS
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Override the old values stored in the database.
|
|
|
|
%%
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Override global options (shared by all ejabberd nodes in a cluster).
|
|
|
|
%%
|
|
|
|
%%override_global.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Override local options (specific for this particular ejabberd node).
|
|
|
|
%%
|
|
|
|
%%override_local.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Remove the Access Control Lists before new ones are added.
|
|
|
|
%%
|
|
|
|
%%override_acls.
|
|
|
|
|
|
|
|
|
|
|
|
%%% =========
|
|
|
|
%%% DEBUGGING
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% loglevel: Verbosity of log files generated by ejabberd.
|
|
|
|
%% 0: No ejabberd log at all (not recommended)
|
|
|
|
%% 1: Critical
|
|
|
|
%% 2: Error
|
|
|
|
%% 3: Warning
|
|
|
|
%% 4: Info
|
|
|
|
%% 5: Debug
|
|
|
|
%%
|
2006-12-14 19:54:50 +01:00
|
|
|
{loglevel, 4}.
|
2003-01-19 21:17:56 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
2008-12-16 18:36:34 +01:00
|
|
|
%% watchdog_admins: Only useful for developers: if an ejabberd process
|
|
|
|
%% consumes a lot of memory, send live notifications to these Jabber
|
|
|
|
%% accounts.
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%%{watchdog_admins, ["bob@example.com"]}.
|
2003-02-01 21:21:28 +01:00
|
|
|
|
2003-01-18 20:42:48 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%% ================
|
|
|
|
%%% SERVED HOSTNAMES
|
2004-01-11 21:42:57 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% hosts: Domains served by ejabberd.
|
|
|
|
%% You can define one or several, for example:
|
|
|
|
%% {hosts, ["example.net", "example.com", "example.org"]}.
|
|
|
|
%%
|
|
|
|
{hosts, ["localhost"]}.
|
2003-01-29 21:21:14 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% route_subdomains: Delegate subdomains to other Jabber server.
|
|
|
|
%% For example, if this ejabberd serves example.org and you want
|
|
|
|
%% to allow communication with a Jabber server called im.example.org.
|
|
|
|
%%
|
|
|
|
%%{route_subdomains, s2s}.
|
2003-01-29 21:21:14 +01:00
|
|
|
|
2003-02-09 20:17:23 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%% ===============
|
|
|
|
%%% LISTENING PORTS
|
2003-02-09 20:17:23 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% listen: Which ports will ejabberd listen, which service handles it
|
|
|
|
%% and what options to start it with.
|
|
|
|
%%
|
|
|
|
{listen,
|
|
|
|
[
|
2007-06-25 09:15:30 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
{5222, ejabberd_c2s, [
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% If TLS is compiled and you installed a SSL
|
|
|
|
%% certificate, put the correct path to the
|
|
|
|
%% file and uncomment this line:
|
|
|
|
%%
|
|
|
|
%%{certfile, "/path/to/ssl.pem"}, starttls,
|
|
|
|
|
|
|
|
{access, c2s},
|
|
|
|
{shaper, c2s_shaper},
|
|
|
|
{max_stanza_size, 65536}
|
|
|
|
]},
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% To enable the old SSL connection method in port 5223:
|
|
|
|
%%
|
|
|
|
%%{5223, ejabberd_c2s, [
|
|
|
|
%% {access, c2s},
|
|
|
|
%% {shaper, c2s_shaper},
|
2007-12-17 12:03:22 +01:00
|
|
|
%% {certfile, "/path/to/ssl.pem"}, tls,
|
2007-11-26 15:35:53 +01:00
|
|
|
%% {max_stanza_size, 65536}
|
|
|
|
%% ]},
|
|
|
|
|
|
|
|
{5269, ejabberd_s2s_in, [
|
|
|
|
{shaper, s2s_shaper},
|
|
|
|
{max_stanza_size, 131072}
|
|
|
|
]},
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% ejabberd_service: Interact with external components (transports...)
|
|
|
|
%%
|
|
|
|
%%{8888, ejabberd_service, [
|
|
|
|
%% {access, all},
|
|
|
|
%% {shaper_rule, fast},
|
|
|
|
%% {ip, {127, 0, 0, 1}},
|
|
|
|
%% {hosts, ["icq.example.org", "sms.example.org"],
|
|
|
|
%% [{password, "secret"}]
|
|
|
|
%% }
|
|
|
|
%% ]},
|
|
|
|
|
|
|
|
{5280, ejabberd_http, [
|
2009-04-22 12:21:55 +02:00
|
|
|
captcha,
|
2007-11-26 15:35:53 +01:00
|
|
|
http_poll,
|
|
|
|
web_admin
|
|
|
|
]}
|
2003-10-19 18:19:55 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
]}.
|
2003-01-19 21:17:56 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% s2s_use_starttls: Enable STARTTLS + Dialback for S2S connections.
|
|
|
|
%% Allowed values are: true or false.
|
|
|
|
%% You must specify a certificate file.
|
|
|
|
%%
|
|
|
|
%%{s2s_use_starttls, true}.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% s2s_certfile: Specify a certificate file.
|
|
|
|
%%
|
|
|
|
%%{s2s_certfile, "/path/to/ssl.pem"}.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% domain_certfile: Specify a different certificate for each served hostname.
|
|
|
|
%%
|
|
|
|
%%{domain_certfile, "example.org", "/path/to/example_org.pem"}.
|
|
|
|
%%{domain_certfile, "example.com", "/path/to/example_com.pem"}.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% S2S whitelist or blacklist
|
|
|
|
%%
|
|
|
|
%% Default s2s policy for undefined hosts.
|
|
|
|
%%
|
|
|
|
%%{s2s_default_policy, allow}.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Allow or deny communication with specific servers.
|
|
|
|
%%
|
|
|
|
%%{{s2s_host, "goodhost.org"}, allow}.
|
|
|
|
%%{{s2s_host, "badhost.org"}, deny}.
|
|
|
|
|
2008-12-26 12:45:08 +01:00
|
|
|
%%
|
|
|
|
%% Outgoing S2S options
|
|
|
|
%%
|
|
|
|
%% Preferred address families (which to try first) and connect timeout
|
|
|
|
%% in milliseconds.
|
|
|
|
%%
|
|
|
|
%%{outgoing_s2s_options, [ipv4, ipv6], 10000}.
|
2007-11-26 15:35:53 +01:00
|
|
|
|
|
|
|
%%% ==============
|
|
|
|
%%% AUTHENTICATION
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% auth_method: Method used to authenticate the users.
|
|
|
|
%% The default method is the internal.
|
|
|
|
%% If you want to use a different method,
|
|
|
|
%% comment this line and enable the correct ones.
|
|
|
|
%%
|
|
|
|
{auth_method, internal}.
|
2003-02-01 21:21:28 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% Authentication using external script
|
|
|
|
%% Make sure the script is executable by ejabberd.
|
|
|
|
%%
|
|
|
|
%%{auth_method, external}.
|
|
|
|
%%{extauth_program, "/path/to/authentication/script"}.
|
|
|
|
|
2007-11-26 22:29:14 +01:00
|
|
|
%%
|
|
|
|
%% Authentication using ODBC
|
|
|
|
%% Remember to setup a database in the next section.
|
|
|
|
%%
|
|
|
|
%%{auth_method, odbc}.
|
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% Authentication using PAM
|
|
|
|
%%
|
|
|
|
%%{auth_method, pam}.
|
|
|
|
%%{pam_service, "pamservicename"}.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Authentication using LDAP
|
|
|
|
%%
|
|
|
|
%%{auth_method, ldap}.
|
|
|
|
%%
|
|
|
|
%% List of LDAP servers:
|
|
|
|
%%{ldap_servers, ["localhost"]}.
|
|
|
|
%%
|
|
|
|
%% LDAP attribute that holds user ID:
|
|
|
|
%%{ldap_uids, [{"mail", "%u@mail.example.org"}]}.
|
|
|
|
%%
|
|
|
|
%% Search base of LDAP directory:
|
|
|
|
%%{ldap_base, "dc=example,dc=com"}.
|
|
|
|
%%
|
|
|
|
%% LDAP manager:
|
|
|
|
%%{ldap_rootdn, "dc=example,dc=com"}.
|
|
|
|
%%
|
|
|
|
%% Password to LDAP manager:
|
|
|
|
%%{ldap_password, "******"}.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Anonymous login support:
|
|
|
|
%% auth_method: anonymous
|
|
|
|
%% anonymous_protocol: sasl_anon | login_anon | both
|
|
|
|
%% allow_multiple_connections: true | false
|
|
|
|
%%
|
|
|
|
%%{host_config, "public.example.org", [{auth_method, anonymous},
|
|
|
|
%% {allow_multiple_connections, false},
|
|
|
|
%% {anonymous_protocol, sasl_anon}]}.
|
|
|
|
%%
|
|
|
|
%% To use both anonymous and internal authentication:
|
|
|
|
%%
|
|
|
|
%%{host_config, "public.example.org", [{auth_method, [internal, anonymous]}]}.
|
2003-02-09 20:17:23 +01:00
|
|
|
|
2003-11-10 22:25:36 +01:00
|
|
|
|
2007-11-26 22:29:14 +01:00
|
|
|
%%% ==============
|
|
|
|
%%% DATABASE SETUP
|
|
|
|
|
|
|
|
%% ejabberd uses by default the internal Mnesia database,
|
|
|
|
%% so you can avoid this section.
|
|
|
|
%% This section provides configuration examples in case
|
|
|
|
%% you want to use other database backends.
|
|
|
|
%% Please consult the ejabberd Guide for details about database creation.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% MySQL server:
|
|
|
|
%%
|
|
|
|
%%{odbc_server, {mysql, "server", "database", "username", "password"}}.
|
|
|
|
%%
|
|
|
|
%% If you want to specify the port:
|
|
|
|
%%{odbc_server, {mysql, "server", 1234, "database", "username", "password"}}.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% PostgreSQL server:
|
|
|
|
%%
|
|
|
|
%%{odbc_server, {pgsql, "server", "database", "username", "password"}}.
|
|
|
|
%%
|
|
|
|
%% If you want to specify the port:
|
|
|
|
%%{odbc_server, {pgsql, "server", 1234, "database", "username", "password"}}.
|
|
|
|
%%
|
|
|
|
%% If you use PostgreSQL, have a large database, and need a
|
|
|
|
%% faster but inexact replacement for "select count(*) from users"
|
|
|
|
%%
|
|
|
|
%%{pgsql_users_number_estimate, true}.
|
2003-02-09 20:17:23 +01:00
|
|
|
|
2007-11-26 22:29:14 +01:00
|
|
|
%%
|
|
|
|
%% ODBC compatible or MSSQL server:
|
|
|
|
%%
|
|
|
|
%%{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.
|
2003-11-10 22:25:36 +01:00
|
|
|
|
2008-02-08 19:28:36 +01:00
|
|
|
%%
|
|
|
|
%% Number of connections to open to the database for each virtual host
|
|
|
|
%%
|
|
|
|
%%{odbc_pool_size, 10}.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Interval to make a dummy SQL request to keep alive the connections
|
|
|
|
%% to the database. Specify in seconds: for example 28800 means 8 hours
|
|
|
|
%%
|
|
|
|
%%{odbc_keepalive_interval, undefined}.
|
|
|
|
|
2003-03-27 21:55:09 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%% ===============
|
|
|
|
%%% TRAFFIC SHAPERS
|
2004-05-17 22:36:41 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% The "normal" shaper limits traffic speed to 1.000 B/s
|
|
|
|
%%
|
|
|
|
{shaper, normal, {maxrate, 1000}}.
|
2004-01-11 21:42:57 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% The "fast" shaper limits traffic speed to 50.000 B/s
|
|
|
|
%%
|
|
|
|
{shaper, fast, {maxrate, 50000}}.
|
2003-11-23 21:11:21 +01:00
|
|
|
|
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%% ====================
|
|
|
|
%%% ACCESS CONTROL LISTS
|
2003-11-23 21:11:21 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% The 'admin' ACL grants administrative privileges to Jabber accounts.
|
|
|
|
%% You can put as many accounts as you want.
|
|
|
|
%%
|
|
|
|
%%{acl, admin, {user, "aleksey", "localhost"}}.
|
|
|
|
%%{acl, admin, {user, "ermine", "example.org"}}.
|
2004-10-08 22:40:29 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% Blocked users
|
|
|
|
%%
|
|
|
|
%%{acl, blocked, {user, "baduser", "example.org"}}.
|
|
|
|
%%{acl, blocked, {user, "test"}}.
|
2007-10-01 12:33:03 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% Local users: don't modify this line.
|
|
|
|
%%
|
|
|
|
{acl, local, {user_regexp, ""}}.
|
2005-04-18 20:41:57 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%
|
|
|
|
%% More examples of ACLs
|
|
|
|
%%
|
|
|
|
%%{acl, jabberorg, {server, "jabber.org"}}.
|
|
|
|
%%{acl, aleksey, {user, "aleksey", "jabber.ru"}}.
|
|
|
|
%%{acl, test, {user_regexp, "^test"}}.
|
|
|
|
%%{acl, test, {user_glob, "test*"}}.
|
2007-05-12 20:09:38 +02:00
|
|
|
|
2008-03-04 11:36:57 +01:00
|
|
|
%%
|
|
|
|
%% Define specific ACLs in a virtual host.
|
|
|
|
%%
|
|
|
|
%%{host_config, "localhost",
|
|
|
|
%% [
|
|
|
|
%% {acl, admin, {user, "bob-local", "localhost"}}
|
|
|
|
%% ]
|
|
|
|
%%}.
|
|
|
|
|
2003-11-23 21:11:21 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%% ============
|
|
|
|
%%% ACCESS RULES
|
2003-02-09 20:17:23 +01:00
|
|
|
|
2008-04-29 18:44:12 +02:00
|
|
|
%% Maximum number of simultaneous sessions allowed for a single user:
|
2006-11-23 07:34:05 +01:00
|
|
|
{access, max_user_sessions, [{10, all}]}.
|
2006-05-22 12:17:22 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%% This rule allows access only for local users:
|
|
|
|
{access, local, [{allow, local}]}.
|
2006-04-07 02:39:24 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%% Only non-blocked users can use c2s connections:
|
|
|
|
{access, c2s, [{deny, blocked},
|
|
|
|
{allow, all}]}.
|
2004-07-10 00:34:26 +02:00
|
|
|
|
2008-04-29 18:44:12 +02:00
|
|
|
%% For C2S connections, all users except admins use "normal" shaper
|
2007-11-26 15:35:53 +01:00
|
|
|
{access, c2s_shaper, [{none, admin},
|
|
|
|
{normal, all}]}.
|
|
|
|
|
2008-04-29 18:44:12 +02:00
|
|
|
%% All S2S connections use "fast" shaper
|
2007-11-26 15:35:53 +01:00
|
|
|
{access, s2s_shaper, [{fast, all}]}.
|
|
|
|
|
|
|
|
%% Only admins can send announcement messages:
|
|
|
|
{access, announce, [{allow, admin}]}.
|
2003-01-07 20:10:35 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%% Only admins can use configuration interface:
|
|
|
|
{access, configure, [{allow, admin}]}.
|
2005-10-25 03:08:37 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%% Admins of this server are also admins of MUC service:
|
|
|
|
{access, muc_admin, [{allow, admin}]}.
|
2005-10-25 03:08:37 +02:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%% All users are allowed to use MUC service:
|
|
|
|
{access, muc, [{allow, all}]}.
|
2007-07-18 19:42:53 +02:00
|
|
|
|
2008-06-13 19:51:01 +02:00
|
|
|
%% Everybody can create pubsub nodes
|
|
|
|
{access, pubsub_createnode, [{allow, all}]}.
|
|
|
|
|
2008-04-29 18:44:12 +02:00
|
|
|
%% In-band registration allows registration of any possible username.
|
2007-11-26 15:35:53 +01:00
|
|
|
%% To disable in-band registration, replace 'allow' with 'deny'.
|
|
|
|
{access, register, [{allow, all}]}.
|
2003-10-11 19:39:36 +02:00
|
|
|
|
2008-06-13 19:51:01 +02:00
|
|
|
%% By default frequency of account registrations from a the same IP
|
|
|
|
%% is limited to 1 account every 10 minutes. To disable put: infinity
|
|
|
|
%%{registration_timeout, 600}.
|
2003-01-29 18:12:23 +01:00
|
|
|
|
2008-03-04 11:36:57 +01:00
|
|
|
%%
|
|
|
|
%% Define specific Access rules in a virtual host.
|
|
|
|
%%
|
|
|
|
%%{host_config, "localhost",
|
|
|
|
%% [
|
|
|
|
%% {access, c2s, [{allow, admin}, {deny, all}]},
|
|
|
|
%% {access, register, [{deny, all}]}
|
|
|
|
%% ]
|
|
|
|
%%}.
|
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
|
2009-04-22 12:21:55 +02:00
|
|
|
%%% =======
|
|
|
|
%%% CAPTCHA
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Full path to a script that generates the image.
|
|
|
|
%%
|
|
|
|
%%{captcha_cmd, "/lib/ejabberd/priv/bin/captcha.sh"}.
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Host part of the URL sent to the user.
|
|
|
|
%%
|
|
|
|
%%{captcha_host, "example.org:5280"}.
|
|
|
|
|
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%% ================
|
|
|
|
%%% DEFAULT LANGUAGE
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% language: Default language used for server messages.
|
|
|
|
%%
|
|
|
|
{language, "en"}.
|
|
|
|
|
2008-03-04 11:36:57 +01:00
|
|
|
%%
|
2008-04-29 18:44:12 +02:00
|
|
|
%% Set a different default language in a virtual host.
|
2008-03-04 11:36:57 +01:00
|
|
|
%%
|
|
|
|
%%{host_config, "localhost",
|
|
|
|
%% [{language, "ru"}]
|
|
|
|
%%}.
|
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
|
|
|
|
%%% =======
|
|
|
|
%%% MODULES
|
|
|
|
|
|
|
|
%%
|
|
|
|
%% Modules enabled in all ejabberd virtual hosts.
|
|
|
|
%%
|
2004-05-17 22:36:41 +02:00
|
|
|
{modules,
|
|
|
|
[
|
2007-11-26 15:35:53 +01:00
|
|
|
{mod_adhoc, []},
|
2008-03-04 10:07:43 +01:00
|
|
|
{mod_announce, [{access, announce}]}, % recommends mod_adhoc
|
2007-12-06 12:13:29 +01:00
|
|
|
{mod_caps, []},
|
2007-11-26 15:35:53 +01:00
|
|
|
{mod_configure,[]}, % requires mod_adhoc
|
|
|
|
{mod_disco, []},
|
|
|
|
%%{mod_echo, [{host, "echo.localhost"}]},
|
|
|
|
{mod_irc, []},
|
|
|
|
{mod_last, []},
|
|
|
|
{mod_muc, [
|
|
|
|
%%{host, "conference.@HOST@"},
|
|
|
|
{access, muc},
|
|
|
|
{access_create, muc},
|
|
|
|
{access_persistent, muc},
|
|
|
|
{access_admin, muc_admin}
|
|
|
|
]},
|
|
|
|
%%{mod_muc_log,[]},
|
|
|
|
{mod_offline, []},
|
|
|
|
{mod_privacy, []},
|
|
|
|
{mod_private, []},
|
|
|
|
%%{mod_proxy65,[]},
|
2007-12-06 12:13:29 +01:00
|
|
|
{mod_pubsub, [ % requires mod_caps
|
|
|
|
{access_createnode, pubsub_createnode},
|
|
|
|
{plugins, ["default", "pep"]}
|
|
|
|
]},
|
2007-11-26 15:35:53 +01:00
|
|
|
{mod_register, [
|
|
|
|
%%
|
|
|
|
%% After successful registration, the user receives
|
|
|
|
%% a message with this subject and body.
|
|
|
|
%%
|
|
|
|
{welcome_message, {"Welcome!",
|
2008-07-11 15:35:08 +02:00
|
|
|
"Hi.\nWelcome to this Jabber server."}},
|
2007-11-26 15:35:53 +01:00
|
|
|
|
|
|
|
%%
|
|
|
|
%% When a user registers, send a notification to
|
|
|
|
%% these Jabber accounts.
|
|
|
|
%%
|
|
|
|
%%{registration_watchers, ["admin1@example.org"]},
|
|
|
|
|
|
|
|
{access, register}
|
|
|
|
]},
|
|
|
|
{mod_roster, []},
|
|
|
|
%%{mod_service_log,[]},
|
|
|
|
{mod_shared_roster,[]},
|
|
|
|
{mod_stats, []},
|
|
|
|
{mod_time, []},
|
|
|
|
{mod_vcard, []},
|
|
|
|
{mod_version, []}
|
2004-05-17 22:36:41 +02:00
|
|
|
]}.
|
2003-01-07 20:10:35 +01:00
|
|
|
|
2008-03-04 11:36:57 +01:00
|
|
|
%%
|
|
|
|
%% Enable modules with custom options in a specific virtual host
|
|
|
|
%%
|
|
|
|
%%{host_config, "localhost",
|
|
|
|
%% [{{add, modules},
|
|
|
|
%% [
|
|
|
|
%% {mod_echo, [{host, "mirror.localhost"}]}
|
|
|
|
%% ]
|
|
|
|
%% }
|
|
|
|
%% ]}.
|
|
|
|
|
2003-01-07 20:10:35 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%% $Id$
|
2003-01-07 20:10:35 +01:00
|
|
|
|
2007-11-26 15:35:53 +01:00
|
|
|
%%% Local Variables:
|
|
|
|
%%% mode: erlang
|
|
|
|
%%% End:
|
|
|
|
%%% vim: set filetype=erlang tabstop=8:
|