Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Admin user
- {acl, admin, {user, "tr", "vs-chat.vs"}}.
- %% Hostname
- {hosts, ["vs-chat.vs"]}.
- {loglevel, 5}.
- %%% ===============
- %%% LISTENING PORTS
- {listen,
- [
- {5222, ejabberd_c2s, [
- {access, c2s},
- {shaper, c2s_shaper},
- {max_stanza_size, 65536},
- %%zlib,
- starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
- ]},
- %%
- %% To enable the old SSL connection method (deprecated) in port 5223:
- %%
- {5223, ejabberd_c2s, [
- {access, c2s},
- {shaper, c2s_shaper},
- {max_stanza_size, 65536},
- zlib,
- tls, {certfile, "/etc/ejabberd/ejabberd.pem"}
- ]},
- {5269, ejabberd_s2s_in, [
- {shaper, s2s_shaper},
- {max_stanza_size, 131072}
- ]},
- {5280, ejabberd_http, [
- %%{request_handlers,
- %% [
- %% {["pub", "archive"], mod_http_fileserver}
- %% ]},
- captcha,
- http_bind,
- http_poll,
- web_admin
- ]},
- {5281, ejabberd_http, [
- tls,
- {certfile, "/etc/ejabberd/ejabberd.pem"},
- register
- ]}
- ]}.
- {s2s_use_starttls, true}.
- {s2s_certfile, "/etc/ejabberd/ejabberd.pem"}.
- %%% ==============
- %%% AUTHENTICATION
- {auth_method, internal}.
- %%% ===============
- %%% TRAFFIC SHAPERS
- {shaper, normal, {maxrate, 1000}}.
- {shaper, fast, {maxrate, 50000}}.
- %%% ====================
- %%% ACCESS CONTROL LISTS
- {acl, local, {user_regexp, ""}}.
- %%% ============
- %%% ACCESS RULES
- {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, [{allow, all}]}.
- {access, register, [{allow, all}]}.
- {access, pubsub_createnode, [{allow, all}]}.
- %%% ================
- %%% DEFAULT LANGUAGE
- {language, "en"}.
- %%% =======
- %%% CAPTCHA
- {captcha_cmd, "/usr/lib/ejabberd/priv/bin/captcha.sh"}.
- %%{captcha_host, "localhost:5280"}.
- %%% =======
- %%% MODULES
- {modules,
- [
- {mod_adhoc, []},
- {mod_announce, [{access, announce}]}, % requires mod_adhoc
- {mod_caps, []},
- {mod_configure,[]}, % requires mod_adhoc
- {mod_admin_extra, []},
- {mod_disco, []},
- %%{mod_echo, [{host, "echo.localhost"}]},
- {mod_irc, [{access, all},
- {host, "vs-chat.vs"}]},
- %% NOTE that mod_http_fileserver must also be enabled in the
- %% "request_handlers" clause of the "ejabberd_http" listener
- %% configuration (see the "LISTENING PORTS" section above).
- %%{mod_http_fileserver, [
- %% {docroot, "/var/www"},
- %% {accesslog, "/var/log/ejabberd/access.log"}
- %% ]},
- {mod_last, []},
- {mod_muc, [
- %%{host, "conference.@HOST@"},
- {access, muc},
- {access_create, muc},
- {access_persistent, muc},
- {access_admin, muc_admin},
- {max_users, 500}
- ]},
- %%{mod_muc_log,[]},
- {mod_offline, [{access_max_user_messages, max_user_offline_messages}]},
- {mod_privacy, []},
- {mod_private, []},
- {mod_proxy65, [
- {access, local},
- {shaper, c2s_shaper}
- ]},
- {mod_pubsub, [ % requires mod_caps
- {access_createnode, pubsub_createnode},
- {pep_sendlast_offline, false},
- {last_item_cache, false},
- %%{plugins, ["default", "pep"]}
- {plugins, ["flat", "hometree", "pep"]} % pep requires mod_caps
- ]},
- {mod_register, [
- %%
- %% After successful registration, the user receives
- %% a message with this subject and body.
- %%
- {welcome_message, {"Welcome!",
- "Welcome to a Jabber service powered by Debian. "
- "For information about Jabber visit "
- "http://www.jabber.org"}},
- %% Replace it with 'none' if you don't want to send such message:
- {welcome_message, "Willkommen auf dem Jabber-Server das VS-Netzes!"},
- %%
- %% When a user registers, send a notification to
- %% these Jabber accounts.
- %%
- %%{registration_watchers, ["admin1@example.org"]},
- {access, register}
- ]},
- {mod_register_web, []},
- {mod_roster, []},
- %%{mod_service_log,[]},
- %%{mod_shared_roster,[]},
- {mod_stats, []},
- {mod_time, []},
- {mod_vcard, []},
- {mod_version, []}
- ]}.
- %%% $Id: ejabberd.cfg.example 2497 2009-08-17 20:27:28Z cromain $
- %%% Local Variables:
- %%% mode: erlang
- %%% End:
- %%% vim: set filetype=erlang tabstop=8:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement