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
|
|
|
|
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-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-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-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}]}.
|
|
|
|
|
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},
|
2003-07-14 20:06:03 +02:00
|
|
|
{ssl, [{certfile, "./ssl.pem"}]}]},
|
|
|
|
{5269, ejabberd_s2s_in, []},
|
|
|
|
{8888, ejabberd_service, [{host,
|
|
|
|
"conference.e.localhost",
|
|
|
|
[{password, "asdqwe"}]}]}
|
2003-01-23 21:57:55 +01:00
|
|
|
]}.
|
2003-01-07 20:10:35 +01:00
|
|
|
|
2003-10-11 19:39:36 +02:00
|
|
|
% If SRV lookup fails, then port 5269 used to communicate with other servers
|
|
|
|
{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-01-24 21:18:33 +01:00
|
|
|
{mod_time, [{iqdisc, no_queue}]},
|
|
|
|
{mod_version, []}
|
2003-01-23 21:57:55 +01:00
|
|
|
]}.
|
2003-01-07 20:10:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
% Local Variables:
|
|
|
|
% mode: erlang
|
|
|
|
% End:
|