2013-04-08 11:12:54 +02:00
|
|
|
{loglevel, 4}.
|
2013-06-21 19:23:56 +02:00
|
|
|
{hosts, ["localhost",
|
|
|
|
"mnesia.localhost",
|
|
|
|
"mysql.localhost",
|
2020-04-28 16:22:42 +02:00
|
|
|
"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"]}.
|
2013-06-14 17:23:57 +02:00
|
|
|
{define_macro, 'CERTFILE', "cert.pem"}.
|
2013-04-08 11:12:54 +02:00
|
|
|
{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'},
|
2013-04-08 11:12:54 +02:00
|
|
|
{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}]}.
|
2013-06-14 18:35:14 +02:00
|
|
|
{registration_timeout, infinity}.
|
2013-04-08 11:12:54 +02:00
|
|
|
{language, "en"}.
|
|
|
|
{modules,
|
|
|
|
[
|
|
|
|
{mod_adhoc, []},
|
|
|
|
{mod_configure, []},
|
|
|
|
{mod_disco, []},
|
|
|
|
{mod_ping, []},
|
|
|
|
{mod_proxy65, []},
|
|
|
|
{mod_register, [
|
|
|
|
{welcome_message, {"Welcome!",
|
2013-06-19 12:11:20 +02:00
|
|
|
"Hi.\nWelcome to this XMPP server."}}
|
2013-04-08 11:12:54 +02:00
|
|
|
]},
|
|
|
|
{mod_stats, []},
|
|
|
|
{mod_time, []},
|
|
|
|
{mod_version, []}
|
2013-06-19 12:11:20 +02:00
|
|
|
]}.
|
|
|
|
{host_config, "localhost", [{auth_method, internal}]}.
|
2013-06-26 04:29:50 +02:00
|
|
|
{host_config, "extauth.localhost",
|
|
|
|
[{auth_method, external},
|
2023-01-19 13:57:33 +01:00
|
|
|
{extauth_program, "python3 extauth.py"}]}.
|
2013-06-19 12:11:20 +02:00
|
|
|
{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"}},
|
2020-04-28 16:22:42 +02: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},
|
|
|
|
{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"}},
|
2013-06-19 12:11:20 +02: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}]},
|
2015-04-08 17:12:05 +02:00
|
|
|
{mod_pubsub, [{db_type, odbc},
|
|
|
|
{access_createnode, pubsub_createnode},
|
2013-06-19 12:11:20 +02:00
|
|
|
{ignore_pep_from_offline, true},
|
|
|
|
{last_item_cache, false},
|
2013-06-25 10:26:00 +02:00
|
|
|
{plugins, ["flat", "hometree", "pep"]}]},
|
2013-06-19 12:11:20 +02:00
|
|
|
{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}]},
|
2015-04-08 17:12:05 +02:00
|
|
|
{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"}},
|
2013-06-19 12:11:20 +02: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}]},
|
2015-04-08 17:12:05 +02:00
|
|
|
{mod_pubsub, [{db_type, odbc},
|
|
|
|
{access_createnode, pubsub_createnode},
|
2013-06-19 12:11:20 +02:00
|
|
|
{ignore_pep_from_offline, true},
|
|
|
|
{last_item_cache, false},
|
2013-06-25 10:26:00 +02:00
|
|
|
{plugins, ["flat", "hometree", "pep"]}]},
|
2013-06-19 12:11:20 +02:00
|
|
|
{mod_roster, [{db_type, odbc}]},
|
|
|
|
{mod_vcard, [{db_type, odbc}]}]}
|
2013-04-08 11:12:54 +02:00
|
|
|
]}.
|
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, []}]}
|
|
|
|
]}.
|
2013-04-08 11:12:54 +02:00
|
|
|
|
|
|
|
%%% Local Variables:
|
|
|
|
%%% mode: erlang
|
|
|
|
%%% End:
|
|
|
|
%%% vim: set filetype=erlang tabstop=8 foldmarker=%%%',%%%. foldmethod=marker:
|