Updated ejabberd.cfg template
* added default_room_options * added support for chatroom logging
This commit is contained in:
parent
29bc90e6f6
commit
206392dd67
2 changed files with 31 additions and 7 deletions
|
@ -17,6 +17,9 @@
|
||||||
# $ejabberd_ssl_chain:
|
# $ejabberd_ssl_chain:
|
||||||
# Path to SSL certificate chain.
|
# Path to SSL certificate chain.
|
||||||
#
|
#
|
||||||
|
# $ejabberd_muclog_datadir:
|
||||||
|
# Path where to store chatroom logs. Disabled by default.
|
||||||
|
#
|
||||||
class ejabberd {
|
class ejabberd {
|
||||||
|
|
||||||
if !$ejabberd_hosts {
|
if !$ejabberd_hosts {
|
||||||
|
|
|
@ -209,7 +209,7 @@ override_acls.
|
||||||
%%
|
%%
|
||||||
%% Default s2s policy for undefined hosts.
|
%% Default s2s policy for undefined hosts.
|
||||||
%%
|
%%
|
||||||
{s2s_default_policy, deny}.
|
{s2s_default_policy, allow}.
|
||||||
|
|
||||||
%%
|
%%
|
||||||
%% Allow or deny communication with specific servers.
|
%% Allow or deny communication with specific servers.
|
||||||
|
@ -558,13 +558,35 @@ user, host = admin.split("@") -%>
|
||||||
{mod_muc, [
|
{mod_muc, [
|
||||||
%%{host, "conference.@HOST@"},
|
%%{host, "conference.@HOST@"},
|
||||||
{access, muc},
|
{access, muc},
|
||||||
{access_create, muc},
|
{access_create, muc_create},
|
||||||
{access_persistent, muc},
|
{access_persistent, muc_create},
|
||||||
{access_admin, muc_admin},
|
{access_admin, muc_admin},
|
||||||
{max_user_conferences, 10000},
|
{history_size, 100},
|
||||||
{max_users, 1000}
|
{max_users, 1000},
|
||||||
|
{max_user_conferences, 1000},
|
||||||
|
{default_room_options,
|
||||||
|
[
|
||||||
|
{allow_user_invites, true},
|
||||||
|
{anonymous, false},
|
||||||
|
{public, false},
|
||||||
|
<% if has_variable?("ejabberd_muclog_datadir") -%>
|
||||||
|
{logging, true}
|
||||||
|
<% else -%>
|
||||||
|
{logging, false}
|
||||||
|
<% end -%>
|
||||||
|
]
|
||||||
|
}
|
||||||
]},
|
]},
|
||||||
%%{mod_muc_log,[]},
|
%%{mod_muc_log,[]},
|
||||||
|
<% if has_variable?("ejabberd_muclog_datadir") -%>
|
||||||
|
{mod_muc_log, [
|
||||||
|
{access_log, muc},
|
||||||
|
{outdir, "<%= ejabberd_muclog_datadir %>"},
|
||||||
|
{dirtype, subdirs},
|
||||||
|
{cssfile, false},
|
||||||
|
{top_link, {"/portal/", "Back to Portal"}}
|
||||||
|
]},
|
||||||
|
<% end -%>
|
||||||
{mod_offline, [{access_max_user_messages, max_user_offline_messages}]},
|
{mod_offline, [{access_max_user_messages, max_user_offline_messages}]},
|
||||||
{mod_privacy, []},
|
{mod_privacy, []},
|
||||||
{mod_private, []},
|
{mod_private, []},
|
||||||
|
@ -574,7 +596,7 @@ user, host = admin.split("@") -%>
|
||||||
]},
|
]},
|
||||||
{mod_pubsub, [ % requires mod_caps
|
{mod_pubsub, [ % requires mod_caps
|
||||||
{access_createnode, pubsub_createnode},
|
{access_createnode, pubsub_createnode},
|
||||||
{pep_sendlast_offline, false},
|
{ignore_pep_from_offline, true}, % reduces resource comsumption, but XEP incompliant
|
||||||
{last_item_cache, false},
|
{last_item_cache, false},
|
||||||
%%{plugins, ["default", "pep"]}
|
%%{plugins, ["default", "pep"]}
|
||||||
{plugins, ["flat", "hometree", "pep"]} % pep requires mod_caps
|
{plugins, ["flat", "hometree", "pep"]} % pep requires mod_caps
|
||||||
|
@ -591,7 +613,6 @@ user, host = admin.split("@") -%>
|
||||||
%% these Jabber accounts.
|
%% these Jabber accounts.
|
||||||
%%
|
%%
|
||||||
%%{registration_watchers, ["admin1@example.org"]},
|
%%{registration_watchers, ["admin1@example.org"]},
|
||||||
|
|
||||||
{access, register}
|
{access, register}
|
||||||
]},
|
]},
|
||||||
{mod_roster, []},
|
{mod_roster, []},
|
||||||
|
|
Loading…
Add table
Reference in a new issue