summaryrefslogtreecommitdiff
path: root/src/ejabberd.cfg.example
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2003-10-11 17:39:36 +0000
committerAlexey Shchepin <alexey@process-one.net>2003-10-11 17:39:36 +0000
commit146d464f96228db6e61c3ca9bdff4990fea25343 (patch)
tree50575683e24d735c40a25a72dc99d89c35f82dea /src/ejabberd.cfg.example
parent* src/stringprep/stringprep_drv.c: Removed needless iconv.h (diff)
* doc/guide.tex: Updated
* src/ejabberd.cfg: Added "register" rule, added some comments, this file renamed to ejabberd.cfg.example * src/mod_register.erl (try_register): Fixed error reply, added check for "register" access rule * src/stringprep/Makefile.win32: Added Makefile for Win32 (thanks to Sergei Golovan) SVN Revision: 148
Diffstat (limited to 'src/ejabberd.cfg.example')
-rw-r--r--src/ejabberd.cfg.example85
1 files changed, 85 insertions, 0 deletions
diff --git a/src/ejabberd.cfg.example b/src/ejabberd.cfg.example
new file mode 100644
index 00000000..2cc561b6
--- /dev/null
+++ b/src/ejabberd.cfg.example
@@ -0,0 +1,85 @@
+% $Id$
+
+%override_acls.
+
+
+% 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"}}.
+
+% Blocked users:
+%{acl, blocked, {user, "test"}}.
+
+% Another examples of ACLs:
+%{acl, jabberorg, {server, "jabber.org"}}.
+%{acl, aleksey, {user, "aleksey", "jabber.ru"}}.
+%{acl, test, {user_regexp, "^test"}}.
+%{acl, test, {user_glob, "test*"}}.
+
+
+% Only admins can use configuration interface:
+{access, configure, [{allow, admin}]}.
+
+% Every username can be registered via in-band registration:
+{access, register, [{allow, all}]}.
+
+
+% Only non-blocked users can use c2s connections:
+{access, c2s, [{deny, blocked},
+ {allow, all}]}.
+
+% Set shaper with name "normal" to limit traffic speed to 1000B/s
+{shaper, normal, {maxrate, 1000}}.
+
+% For all users except admins used "normal" shaper
+{access, c2s_shaper, [{none, admin},
+ {normal, all}]}.
+
+% Admins of this server are also admins of MUC service:
+{access, muc_admin, [{allow, admin}]}.
+
+% Host name:
+{host, "localhost"}.
+
+
+% Listened ports:
+{listen, [{5222, ejabberd_c2s, [{access, c2s},
+ {shaper, c2s_shaper}]},
+ {5223, ejabberd_c2s, [{access, c2s},
+ {ssl, [{certfile, "./ssl.pem"}]}]},
+ {5269, ejabberd_s2s_in, []},
+ {8888, ejabberd_service, [{host,
+ "conference.e.localhost",
+ [{password, "asdqwe"}]}]}
+ ]}.
+
+% If SRV lookup fails, then port 5269 used to communicate with other servers
+{outgoing_s2s_port, 5269}.
+
+
+% Used modules:
+{modules, [
+ {mod_register, []},
+ {mod_roster, []},
+ {mod_privacy, []},
+ {mod_configure, []},
+ {mod_disco, []},
+ {mod_stats, []},
+ {mod_vcard, []},
+ {mod_offline, []},
+ {mod_echo, [{host, "echo.localhost"}]},
+ {mod_private, []},
+ {mod_irc, []},
+ {mod_muc, []},
+ {mod_pubsub, []},
+ {mod_time, [{iqdisc, no_queue}]},
+ {mod_version, []}
+ ]}.
+
+
+
+
+% Local Variables:
+% mode: erlang
+% End: