Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %%%
- %%% ejabberd configuration file
- %%%
- %%% Archipel Sample Configuration
- %%% =======================
- %%% OVERRIDE STORED OPTIONS
- %% loglevel: Verbosity of log files generated by ejabberd.
- {loglevel, 3}.
- %%% ================
- %%% SERVED HOSTNAMES
- %% CHANGE THIS
- {hosts, ["FQDN"]}.
- %%% ===============
- %%% LISTENING PORTS
- {listen,
- [
- %% If you have compiled the ejabberd-xmlrpc, uncomment the following line
- %% {4560, ejabberd_xmlrpc, []},
- {5222, ejabberd_c2s, [
- {certfile, "/etc/ejabberd/ejabberd.pem"},
- {access, c2s},
- {max_stanza_size, 65536000}
- ]},
- {5269, ejabberd_s2s_in, [
- {max_stanza_size, 65536000}
- ]},
- {5280, ejabberd_http, [
- http_bind,
- http_poll,
- web_admin
- ]}
- ]}.
- %%% ===============
- %%% S2S
- {route_subdomains, s2s}.
- {s2s_use_starttls, true}.
- {s2s_default_policy, allow}.
- %%% ==============
- %%% AUTHENTICATION
- {auth_method, internal}.
- %%% ===============
- %%% TRAFFIC SHAPERS
- {shaper, normal, {maxrate, 1000}}.
- {shaper, fast, {maxrate, 50000}}.
- %%% ====================
- %%% ACCESS CONTROL LISTS
- %% CHANGE THIS
- {acl, admin, {user, "admin", "FQDN"}}.
- {acl, local, {user_regexp, ""}}.
- %% if you HAVE NOT compiled ejabberd-xmlrpc module, you
- %% Need to declare all your hypervisors as ejabberd admin
- %% The hypervisor JID is defined in archipel.conf. By default it
- %% it is hypervisor@FQDN
- {acl, admin, {user, "hypervisor", "FQDN"}}.
- %% {acl, admin, {user, "hypervisor-x", "FQDN"}}.
- %% {acl, admin, {user, "hypervisor-n", "FQDN"}}.
- %%% ============
- %%% ACCESS RULES
- {access, max_user_sessions, [{10, all}]}.
- {access, local, [{allow, local}]}.
- {access, c2s, [{deny, blocked}, {allow, all}]}.
- {access, c2s_shaper, [{none, admin}, {none, all}]}.
- {access, s2s_shaper, [{fast, all}]}.
- {access, announce, [{allow, admin}]}.
- {access, configure, [{allow, admin}]}.
- {access, muc_admin, [{allow, admin}]}.
- {access, muc, [{allow, all}]}.
- {access, muc_create, [{allow, local}]}.
- {access, pubsub_createnode, [{allow, all}]}.
- %%% ================
- %%% DEFAULT LANGUAGE
- {language, "en"}.
- %%% =======
- %%% REGISTRATION
- {access, register, [{allow, all}]}.
- {registration_timeout, infinity}.
- %%% =======
- %%% MODULES
- {modules,
- [
- {mod_adhoc, []},
- {mod_announce, [{access, announce}]}, % requires mod_adhoc
- {mod_caps, []},
- {mod_configure,[]},
- {mod_disco, []},
- {mod_http_bind,[
- {max_inactivity, 480} % timeout value for the BOSH, usefull for a large number of VM
- ]},
- {mod_irc, []},
- {mod_last, []},
- {mod_muc, [
- {access, muc},
- {access_create, muc_create},
- {access_persistent, muc_create},
- {access_admin, muc_admin}
- ]},
- {mod_offline, []},
- {mod_privacy, []},
- {mod_private, []},
- {mod_pubsub, [ % requires mod_caps
- {access_createnode, pubsub_createnode},
- {ignore_pep_from_offline, true},
- {last_item_cache, false},
- {plugins, ["flat", "hometree", "pep"]},
- {max_items_node, 1000}
- ]},
- {mod_register, [
- {access, register}
- ]},
- {mod_roster, []},
- {mod_shared_roster,[]},
- {mod_time, []},
- {mod_vcard, []},
- {mod_version, []},
- {mod_admin_extra, []}
- ]}.
Add Comment
Please, Sign In to add comment