summaryrefslogtreecommitdiff
path: root/src/ejabberd.cfg.example
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2004-05-17 20:36:41 +0000
committerAlexey Shchepin <alexey@process-one.net>2004-05-17 20:36:41 +0000
commit78a673f526055c3146a01df4725aab7baa5fbb83 (patch)
treedaf5813b7f348ed8f6508b1ed6a5eba2d6b63636 /src/ejabberd.cfg.example
parent* src/web/ejabberd_web_admin.erl: Updated (diff)
* src/mod_muc/mod_muc.erl: Added access rules for using serveice
and creating rooms (thanks to Sergei Golovan) * src/win32/ejabberd.nsi: Updated (thanks to Sergei Golovan) * src/win32/CheckUserH.ini: Likewise * src/translate.erl: Search translations in priv_dir instead of lib_dir (thanks to Sergei Golovan) * src/msgs/ru.msg: Updated (thanks to Sergei Golovan) * src/ejabberd.cfg.example: Updated (thanks to Sergei Golovan) * src/**/Makefile.in: Updated (thanks to Sergei Golovan) * src/**/Makefile.win32: Likewise 2004-05-16 Alexey Shchepin <alexey@sevcom.net> * src/web/ejabberd_web_admin.erl: Updated SVN Revision: 235
Diffstat (limited to 'src/ejabberd.cfg.example')
-rw-r--r--src/ejabberd.cfg.example67
1 files changed, 38 insertions, 29 deletions
diff --git a/src/ejabberd.cfg.example b/src/ejabberd.cfg.example
index 0db4e011..cae56ec5 100644
--- a/src/ejabberd.cfg.example
+++ b/src/ejabberd.cfg.example
@@ -64,6 +64,9 @@
% Admins of this server are also admins of MUC service:
{access, muc_admin, [{allow, admin}]}.
+% All users are allowed to use MUC service:
+{access, muc, [{allow, all}]}.
+
% This rule allows access only for local users:
{access, local, [{allow, local}]}.
@@ -84,41 +87,47 @@
% Listened ports:
-{listen, [{5222, ejabberd_c2s, [{access, c2s},
- {shaper, c2s_shaper}]},
- {5223, ejabberd_c2s, [{access, c2s},
- ssl, {certfile, "./ssl.pem"}]},
- {5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]},
- {8888, ejabberd_service, [%{access, local},
- {hosts,
- ["conference.e.localhost",
- "muc.e.localhost"],
- [{password, "secret"}]}]}
- ]}.
+{listen,
+ [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}]},
+ {5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
+ {5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]},
+ {8888, ejabberd_service, [{access, all},
+ {hosts, ["conference.e.localhost", "muc.e.localhost"],
+ [{password, "secret"}]}]}
+ ]}.
% If SRV lookup fails, then port 5269 is used to communicate with remote server
{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, []},
- {mod_last, []},
- {mod_version, []}
- ]}.
+{modules,
+ [
+ {mod_register, []},
+ {mod_roster, []},
+ {mod_privacy, []},
+ {mod_configure, []},
+ {mod_configure2, []},
+ {mod_disco, []},
+ {mod_stats, []},
+ {mod_vcard, []},
+ {mod_offline, []},
+ {mod_echo, [{host, "echo.localhost"}]},
+ {mod_private, []},
+ {mod_irc, []},
+% Default options for mod_muc:
+% host: "conference." ++ ?MYNAME
+% access: all
+% access_create: all
+% access_admin: none (only room creator has owner privileges)
+ {mod_muc, [{access, muc},
+ {access_create, muc},
+ {access_admin, muc_admin}]},
+ {mod_pubsub, []},
+ {mod_time, []},
+ {mod_last, []},
+ {mod_version, []}
+ ]}.