From 146d464f96228db6e61c3ca9bdff4990fea25343 Mon Sep 17 00:00:00 2001 From: Alexey Shchepin Date: Sat, 11 Oct 2003 17:39:36 +0000 Subject: * 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 --- src/ejabberd.cfg.example | 85 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/ejabberd.cfg.example (limited to 'src/ejabberd.cfg.example') 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: -- cgit v1.2.3