Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %%% =======
- %%% MODULES
- %%
- %% Modules enabled in all ejabberd virtual hosts.
- %%
- {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, []},
- %% 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, none},
- %%
- %% When a user registers, send a notification to
- %% these Jabber accounts.
- %%
- %%{registration_watchers, ["admin1@example.org"]},
- {access, register}
- ]},
- {mod_roster, []},
- %%{mod_service_log,[]},
- %%{mod_shared_roster,[]},
- {mod_stats, []},
- {mod_time, []},
- {mod_vcard, []},
- {mod_version, []}
- ]}.
- %%
- %% Enable modules with custom options in a specific virtual host
- %%
- %%{host_config, "localhost",
- %% [{{add, modules},
- %% [
- %% {mod_echo, [{host, "mirror.localhost"}]}
- %% ]
- %% }
- %% ]}.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement