25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-04 15:36:57 +01:00
xmpp.chapril.org-ejabberd/test/ejabberd_SUITE_data/ejabberd.cfg

182 lines
7.5 KiB
INI
Raw Normal View History

{loglevel, 4}.
2013-06-21 19:23:56 +02:00
{hosts, ["localhost",
"mnesia.localhost",
"mysql.localhost",
"mssql.localhost",
2013-06-21 19:23:56 +02:00
"pgsql.localhost",
2015-03-16 19:53:19 +01:00
"sqlite.localhost",
2013-06-26 04:29:50 +02:00
"extauth.localhost",
2013-06-21 19:23:56 +02:00
"ldap.localhost"]}.
{define_macro, 'CERTFILE', "cert.pem"}.
{listen,
[
{5222, ejabberd_c2s, [
{access, c2s},
{shaper, c2s_shaper},
2013-06-14 16:45:04 +02:00
starttls, zlib,
2013-06-14 16:16:32 +02:00
{certfile, 'CERTFILE'},
{max_stanza_size, 65536}
]},
{5269, ejabberd_s2s_in, [
{shaper, s2s_shaper},
{max_stanza_size, 131072}
]},
{5280, ejabberd_http, [
captcha
]}
]}.
{shaper, normal, {maxrate, 1000}}.
{shaper, fast, {maxrate, 50000}}.
{max_fsm_queue, 1000}.
{acl, local, {user_regexp, ""}}.
{access, max_user_sessions, [{10, all}]}.
{access, max_user_offline_messages, [{5000, admin}, {100, all}]}.
{access, local, [{allow, local}]}.
{access, c2s, [{deny, blocked},
{allow, all}]}.
{access, c2s_shaper, [{none, admin},
{normal, all}]}.
{access, s2s_shaper, [{fast, all}]}.
{access, announce, [{allow, admin}]}.
{access, configure, [{allow, admin}]}.
{access, muc_admin, [{allow, admin}]}.
{access, muc_create, [{allow, local}]}.
{access, muc, [{allow, all}]}.
{access, pubsub_createnode, [{allow, local}]}.
{access, register, [{allow, all}]}.
{registration_timeout, infinity}.
{language, "en"}.
{modules,
[
{mod_adhoc, []},
{mod_configure, []},
{mod_disco, []},
{mod_ping, []},
{mod_proxy65, []},
{mod_register, [
{welcome_message, {"Welcome!",
"Hi.\nWelcome to this XMPP server."}}
]},
{mod_stats, []},
{mod_time, []},
{mod_version, []}
]}.
{host_config, "localhost", [{auth_method, internal}]}.
2013-06-26 04:29:50 +02:00
{host_config, "extauth.localhost",
[{auth_method, external},
{extauth_program, "python3 extauth.py"}]}.
{host_config, "mnesia.localhost",
[{auth_method, internal},
{{add, modules}, [{mod_announce, [{db_type, internal}]},
{mod_blocking, [{db_type, internal}]},
{mod_caps, [{db_type, internal}]},
{mod_last, [{db_type, internal}]},
{mod_muc, [{db_type, internal}]},
{mod_offline, [{db_type, internal}]},
{mod_privacy, [{db_type, internal}]},
{mod_private, [{db_type, internal}]},
{mod_pubsub, [{access_createnode, pubsub_createnode},
{ignore_pep_from_offline, true},
{last_item_cache, false},
{plugins, ["flat", "hometree", "pep"]}]},
{mod_roster, [{db_type, internal}]},
{mod_vcard, [{db_type, internal}]}]}
]}.
{host_config, "mysql.localhost",
[{auth_method, odbc},
{odbc_pool_size, 1},
{odbc_server, {mysql, "localhost", "ejabberd_test",
"ejabberd_test", "ejabberd_test"}},
{{add, modules}, [{mod_announce, [{db_type, odbc}]},
{mod_blocking, [{db_type, odbc}]},
{mod_caps, [{db_type, odbc}]},
{mod_last, [{db_type, odbc}]},
{mod_muc, [{db_type, odbc}]},
{mod_offline, [{db_type, odbc}]},
{mod_privacy, [{db_type, odbc}]},
{mod_private, [{db_type, odbc}]},
{mod_pubsub, [{db_type, odbc},
{access_createnode, pubsub_createnode},
{ignore_pep_from_offline, true},
{last_item_cache, false},
{plugins, ["flat", "hometree", "pep"]}]},
{mod_roster, [{db_type, odbc}]},
{mod_vcard, [{db_type, odbc}]}]}
]}.
{host_config, "mssql.localhost",
[{auth_method, odbc},
{odbc_pool_size, 1},
{odbc_server, {mssql, "localhost", "ejabberd_test",
"ejabberd_test", "ejabberd_Test1"}},
{{add, modules}, [{mod_announce, [{db_type, odbc}]},
{mod_blocking, [{db_type, odbc}]},
{mod_caps, [{db_type, odbc}]},
{mod_last, [{db_type, odbc}]},
{mod_muc, [{db_type, odbc}]},
{mod_offline, [{db_type, odbc}]},
{mod_privacy, [{db_type, odbc}]},
{mod_private, [{db_type, odbc}]},
{mod_pubsub, [{db_type, odbc},
{access_createnode, pubsub_createnode},
{ignore_pep_from_offline, true},
{last_item_cache, false},
{plugins, ["flat", "hometree", "pep"]}]},
{mod_roster, [{db_type, odbc}]},
{mod_vcard, [{db_type, odbc}]}]}
]}.
{host_config, "pgsql.localhost",
[{auth_method, odbc},
{odbc_pool_size, 1},
{odbc_server, {pgsql, "localhost", "ejabberd_test",
"ejabberd_test", "ejabberd_test"}},
2015-03-16 19:53:19 +01:00
{{add, modules}, [{mod_announce, [{db_type, odbc}]},
{mod_blocking, [{db_type, odbc}]},
{mod_caps, [{db_type, odbc}]},
{mod_last, [{db_type, odbc}]},
{mod_muc, [{db_type, odbc}]},
{mod_offline, [{db_type, odbc}]},
{mod_privacy, [{db_type, odbc}]},
{mod_private, [{db_type, odbc}]},
{mod_pubsub, [{db_type, odbc},
{access_createnode, pubsub_createnode},
2015-03-16 19:53:19 +01:00
{ignore_pep_from_offline, true},
{last_item_cache, false},
{plugins, ["flat", "hometree", "pep"]}]},
{mod_roster, [{db_type, odbc}]},
{mod_vcard, [{db_type, odbc}]}]}
]}.
{host_config, "sqlite.localhost",
[{auth_method, odbc},
{odbc_pool_size, 1},
{odbc_server, {sqlite, "/tmp/ejabberd_test.db"}},
{{add, modules}, [{mod_announce, [{db_type, odbc}]},
{mod_blocking, [{db_type, odbc}]},
{mod_caps, [{db_type, odbc}]},
{mod_last, [{db_type, odbc}]},
{mod_muc, [{db_type, odbc}]},
{mod_offline, [{db_type, odbc}]},
{mod_privacy, [{db_type, odbc}]},
{mod_private, [{db_type, odbc}]},
{mod_pubsub, [{db_type, odbc},
{access_createnode, pubsub_createnode},
{ignore_pep_from_offline, true},
{last_item_cache, false},
{plugins, ["flat", "hometree", "pep"]}]},
{mod_roster, [{db_type, odbc}]},
{mod_vcard, [{db_type, odbc}]}]}
]}.
2013-06-21 19:23:56 +02:00
{host_config, "ldap.localhost",
[{auth_method, ldap},
{ldap_servers, ["localhost"]},
{ldap_port, 1389},
{ldap_rootdn, "cn=admin,dc=localhost"},
{ldap_password, "password"},
{ldap_base, "ou=users,dc=localhost"},
{{add, modules}, [{mod_vcard_ldap, []}]}
]}.
%%% Local Variables:
%%% mode: erlang
%%% End:
%%% vim: set filetype=erlang tabstop=8 foldmarker=%%%',%%%. foldmethod=marker: