Skip to content

Instantly share code, notes, and snippets.

@gehaxelt
Created May 24, 2012 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gehaxelt/2783753 to your computer and use it in GitHub Desktop.
Save gehaxelt/2783753 to your computer and use it in GitHub Desktop.
Ejabberd configuration file - example
{loglevel, 2}. %%!!Loglevel ändern auf 2
{hosts, ["your-domain.de"]}. %%!!Domain hier eintragen
{listen,
[
{5222, ejabberd_c2s, [ %%!!Port hier ändern, auf dem der Server erreichbar sein soll.
{certfile, "/home/benutzername/jabber/ejabberd/mycert.pem"}, starttls, %%!!Pfad zur mycert.pem
{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 65536}
]} %%!!Hier das Komma entfernen, wenn keine der Daten unten genutzt werden.
]}.
{auth_method, internal}.
{shaper, normal, {maxrate, 1000}}.
{shaper, fast, {maxrate, 50000}}.
{max_fsm_queue, 1000}.
{acl, admin, {user, "admin", "domain.de"}}. %%!!Hier Admindaten setzen
{acl, local, {user_regexp, ""}}.
{access, max_user_sessions, [{10, all}]}.
{access, max_user_offline_messages, [{5000, admin}, {100, all}]}.
{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, all}]}. %%!!Globale Accounts dürfen Räume erstellen
{access, muc, [{allow, all}]}.
{access, pubsub_createnode, [{allow, admin}]}. %%!!Nur der Admin
{access, register, [{allow, all}]}.
{language, "en"}.
{modules,
[
{mod_adhoc, []},
{mod_announce, [{access, announce}]}, % recommends mod_adhoc
{mod_blocking,[]}, % requires mod_privacy
{mod_caps, []},
{mod_configure,[]}, % requires mod_adhoc
{mod_disco, []},
{mod_irc, []},
{mod_http_bind, []},
{mod_last, []},
{mod_muc, [
{access, muc},
{access_create, muc_create},
{access_persistent, muc_create},
{access_admin, muc_admin}
]},
{mod_offline, [{access_max_user_messages, max_user_offline_messages}]},
{mod_ping, []},
{mod_privacy, []},
{mod_private, []},
{mod_pubsub, [
{access_createnode, pubsub_createnode},
{ignore_pep_from_offline, true}, % reduces resource comsumption, but XEP incompliant
{last_item_cache, false},
{plugins, ["flat", "hometree", "pep"]} % pep requires mod_caps
]},
{mod_register, [
{welcome_message, {"Welcome!",
"Hi.\nWelcome to this XMPP server."}},
{ip_access, [{allow, "0.0.0.0/0"}, %%!!Globale Registierung erlauben
{deny, "0.0.0.0/0"}]},
{access, register}
]},
{mod_roster, []},
{mod_shared_roster,[]},
{mod_stats, []},
{mod_time, []},
{mod_vcard, []},
{mod_version, []}
]}.
%%%.
%%%'
%%% $Id$
%%% Local Variables:
%%% mode: erlang
%%% End:
%%% vim: set filetype=erlang tabstop=8 foldmarker=%%%',%%%. foldmethod=marker:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment