2003-01-07 20:10:35 +01:00
|
|
|
% $Id$
|
|
|
|
|
2003-02-09 20:17:23 +01:00
|
|
|
%override_acls.
|
2003-02-02 20:49:19 +01:00
|
|
|
|
2003-01-19 21:17:56 +01:00
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Users that have admin access. Add line like one of the following after you
|
|
|
|
% will be successfully registered on server to get admin access:
|
|
|
|
%{acl, admin, {user, "aleksey"}}.
|
|
|
|
%{acl, admin, {user, "ermine"}}.
|
2003-02-01 21:21:28 +01:00
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Blocked users:
|
|
|
|
%{acl, blocked, {user, "test"}}.
|
2003-01-18 20:42:48 +01:00
|
|
|
|
2004-01-11 21:42:57 +01:00
|
|
|
% Local users:
|
|
|
|
{acl, local, {user_regexp, ""}}.
|
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Another examples of ACLs:
|
|
|
|
%{acl, jabberorg, {server, "jabber.org"}}.
|
|
|
|
%{acl, aleksey, {user, "aleksey", "jabber.ru"}}.
|
2003-10-12 20:21:16 +02:00
|
|
|
%{acl, test, {user_regexp, "^test"}}.
|
2003-10-11 19:39:36 +02:00
|
|
|
%{acl, test, {user_glob, "test*"}}.
|
2003-01-29 21:21:14 +01:00
|
|
|
|
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Only admins can use configuration interface:
|
|
|
|
{access, configure, [{allow, admin}]}.
|
2003-02-09 20:17:23 +01:00
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Every username can be registered via in-band registration:
|
|
|
|
{access, register, [{allow, all}]}.
|
2003-02-09 20:17:23 +01:00
|
|
|
|
2003-10-14 21:34:17 +02:00
|
|
|
% After successful registration user will get message with following subject
|
|
|
|
% and body:
|
|
|
|
{welcome_message,
|
|
|
|
{"Welcome!",
|
|
|
|
"Welcome to Jabber Service. "
|
|
|
|
"For information about Jabber visit http://jabber.org"}}.
|
|
|
|
% Replace them with 'none' if you don't want to send such message:
|
|
|
|
%{welcome_message, none}.
|
|
|
|
|
2003-10-19 18:19:55 +02:00
|
|
|
% List of people who will get notifications about registered users
|
|
|
|
%{registration_watchers, ["admin1@localhost",
|
|
|
|
% "admin2@localhost"]}.
|
|
|
|
|
|
|
|
% Only admins can send announcement messages:
|
|
|
|
{access, announce, [{allow, admin}]}.
|
|
|
|
|
2003-01-19 21:17:56 +01:00
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Only non-blocked users can use c2s connections:
|
2003-02-01 21:21:28 +01:00
|
|
|
{access, c2s, [{deny, blocked},
|
|
|
|
{allow, all}]}.
|
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Set shaper with name "normal" to limit traffic speed to 1000B/s
|
|
|
|
{shaper, normal, {maxrate, 1000}}.
|
2003-02-09 20:17:23 +01:00
|
|
|
|
2003-11-10 22:25:36 +01:00
|
|
|
% Set shaper with name "fast" to limit traffic speed to 50000B/s
|
|
|
|
{shaper, fast, {maxrate, 50000}}.
|
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% For all users except admins used "normal" shaper
|
2003-02-09 20:17:23 +01:00
|
|
|
{access, c2s_shaper, [{none, admin},
|
|
|
|
{normal, all}]}.
|
|
|
|
|
2003-11-10 22:25:36 +01:00
|
|
|
% For all S2S connections used "fast" shaper
|
|
|
|
{access, s2s_shaper, [{fast, all}]}.
|
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Admins of this server are also admins of MUC service:
|
2003-03-27 21:55:09 +01:00
|
|
|
{access, muc_admin, [{allow, admin}]}.
|
|
|
|
|
2004-01-11 21:42:57 +01:00
|
|
|
% This rule allows access only for local users:
|
|
|
|
{access, local, [{allow, local}]}.
|
|
|
|
|
2003-11-23 21:11:21 +01:00
|
|
|
|
|
|
|
% Authentification method. If you want to use internal user base, then use
|
|
|
|
% this line:
|
|
|
|
{auth_method, internal}.
|
|
|
|
|
|
|
|
% For LDAP uthentification use these lines instead of above one:
|
|
|
|
%{auth_method, ldap}.
|
|
|
|
%{ldap_servers, ["localhost"]}. % List of LDAP servers
|
2003-11-27 21:16:10 +01:00
|
|
|
%{ldap_uidattr, "uid"}. % LDAP attribute that holds user ID
|
2003-11-23 21:11:21 +01:00
|
|
|
%{ldap_base, "dc=example,dc=com"}. % Base of LDAP directory
|
|
|
|
|
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Host name:
|
|
|
|
{host, "localhost"}.
|
2003-02-09 20:17:23 +01:00
|
|
|
|
2003-01-07 20:10:35 +01:00
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Listened ports:
|
|
|
|
{listen, [{5222, ejabberd_c2s, [{access, c2s},
|
2003-07-14 20:06:03 +02:00
|
|
|
{shaper, c2s_shaper}]},
|
2003-10-11 19:39:36 +02:00
|
|
|
{5223, ejabberd_c2s, [{access, c2s},
|
2004-05-08 21:30:38 +02:00
|
|
|
ssl, {certfile, "./ssl.pem"}]},
|
2003-11-10 22:25:36 +01:00
|
|
|
{5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]},
|
2004-01-11 21:42:57 +01:00
|
|
|
{8888, ejabberd_service, [%{access, local},
|
|
|
|
{hosts,
|
2003-10-19 18:19:55 +02:00
|
|
|
["conference.e.localhost",
|
|
|
|
"muc.e.localhost"],
|
|
|
|
[{password, "secret"}]}]}
|
2003-01-23 21:57:55 +01:00
|
|
|
]}.
|
2003-01-07 20:10:35 +01:00
|
|
|
|
2003-10-19 18:19:55 +02:00
|
|
|
% If SRV lookup fails, then port 5269 is used to communicate with remote server
|
2003-10-11 19:39:36 +02:00
|
|
|
{outgoing_s2s_port, 5269}.
|
|
|
|
|
2003-01-29 18:12:23 +01:00
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% Used modules:
|
2003-01-22 21:40:40 +01:00
|
|
|
{modules, [
|
2003-01-24 21:18:33 +01:00
|
|
|
{mod_register, []},
|
|
|
|
{mod_roster, []},
|
2003-08-03 21:09:40 +02:00
|
|
|
{mod_privacy, []},
|
2003-01-24 21:18:33 +01:00
|
|
|
{mod_configure, []},
|
|
|
|
{mod_disco, []},
|
|
|
|
{mod_stats, []},
|
|
|
|
{mod_vcard, []},
|
2003-01-23 21:57:55 +01:00
|
|
|
{mod_offline, []},
|
2003-02-17 16:11:27 +01:00
|
|
|
{mod_echo, [{host, "echo.localhost"}]},
|
2003-01-24 21:18:33 +01:00
|
|
|
{mod_private, []},
|
2003-02-16 21:07:21 +01:00
|
|
|
{mod_irc, []},
|
2003-03-23 21:08:44 +01:00
|
|
|
{mod_muc, []},
|
2003-07-07 21:45:22 +02:00
|
|
|
{mod_pubsub, []},
|
2003-10-24 21:21:07 +02:00
|
|
|
{mod_time, []},
|
|
|
|
{mod_last, []},
|
2003-01-24 21:18:33 +01:00
|
|
|
{mod_version, []}
|
2003-01-23 21:57:55 +01:00
|
|
|
]}.
|
2003-01-07 20:10:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
% Local Variables:
|
|
|
|
% mode: erlang
|
|
|
|
% End:
|