Guest User

Untitled

a guest
Jan 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. %%%
  2. %%% ejabberd configuration file
  3. %%%
  4. %%% Archipel Sample Configuration
  5.  
  6. %%% =======================
  7. %%% OVERRIDE STORED OPTIONS
  8.  
  9. %% loglevel: Verbosity of log files generated by ejabberd.
  10. {loglevel, 3}.
  11.  
  12.  
  13. %%% ================
  14. %%% SERVED HOSTNAMES
  15.  
  16. %% CHANGE THIS
  17. {hosts, ["FQDN"]}.
  18.  
  19.  
  20. %%% ===============
  21. %%% LISTENING PORTS
  22.  
  23. {listen,
  24. [
  25. %% If you have compiled the ejabberd-xmlrpc, uncomment the following line
  26. %% {4560, ejabberd_xmlrpc, []},
  27.  
  28. {5222, ejabberd_c2s, [
  29. {certfile, "/etc/ejabberd/ejabberd.pem"},
  30. {access, c2s},
  31. {max_stanza_size, 65536000}
  32. ]},
  33. {5269, ejabberd_s2s_in, [
  34. {max_stanza_size, 65536000}
  35.  
  36. ]},
  37. {5280, ejabberd_http, [
  38. http_bind,
  39. http_poll,
  40. web_admin
  41. ]}
  42. ]}.
  43.  
  44.  
  45. %%% ===============
  46. %%% S2S
  47.  
  48. {route_subdomains, s2s}.
  49. {s2s_use_starttls, true}.
  50. {s2s_default_policy, allow}.
  51.  
  52.  
  53. %%% ==============
  54. %%% AUTHENTICATION
  55.  
  56. {auth_method, internal}.
  57.  
  58.  
  59. %%% ===============
  60. %%% TRAFFIC SHAPERS
  61.  
  62. {shaper, normal, {maxrate, 1000}}.
  63. {shaper, fast, {maxrate, 50000}}.
  64.  
  65.  
  66. %%% ====================
  67. %%% ACCESS CONTROL LISTS
  68.  
  69. %% CHANGE THIS
  70. {acl, admin, {user, "admin", "FQDN"}}.
  71. {acl, local, {user_regexp, ""}}.
  72.  
  73.  
  74. %% if you HAVE NOT compiled ejabberd-xmlrpc module, you
  75. %% Need to declare all your hypervisors as ejabberd admin
  76. %% The hypervisor JID is defined in archipel.conf. By default it
  77. %% it is hypervisor@FQDN
  78.  
  79. {acl, admin, {user, "hypervisor", "FQDN"}}.
  80. %% {acl, admin, {user, "hypervisor-x", "FQDN"}}.
  81. %% {acl, admin, {user, "hypervisor-n", "FQDN"}}.
  82.  
  83.  
  84. %%% ============
  85. %%% ACCESS RULES
  86.  
  87. {access, max_user_sessions, [{10, all}]}.
  88. {access, local, [{allow, local}]}.
  89. {access, c2s, [{deny, blocked}, {allow, all}]}.
  90. {access, c2s_shaper, [{none, admin}, {none, all}]}.
  91. {access, s2s_shaper, [{fast, all}]}.
  92. {access, announce, [{allow, admin}]}.
  93. {access, configure, [{allow, admin}]}.
  94. {access, muc_admin, [{allow, admin}]}.
  95. {access, muc, [{allow, all}]}.
  96. {access, muc_create, [{allow, local}]}.
  97. {access, pubsub_createnode, [{allow, all}]}.
  98.  
  99.  
  100. %%% ================
  101. %%% DEFAULT LANGUAGE
  102.  
  103. {language, "en"}.
  104.  
  105.  
  106. %%% =======
  107. %%% REGISTRATION
  108.  
  109. {access, register, [{allow, all}]}.
  110. {registration_timeout, infinity}.
  111.  
  112. %%% =======
  113. %%% MODULES
  114.  
  115. {modules,
  116. [
  117. {mod_adhoc, []},
  118. {mod_announce, [{access, announce}]}, % requires mod_adhoc
  119. {mod_caps, []},
  120. {mod_configure,[]},
  121. {mod_disco, []},
  122. {mod_http_bind,[
  123. {max_inactivity, 480} % timeout value for the BOSH, usefull for a large number of VM
  124. ]},
  125. {mod_irc, []},
  126. {mod_last, []},
  127. {mod_muc, [
  128. {access, muc},
  129. {access_create, muc_create},
  130. {access_persistent, muc_create},
  131. {access_admin, muc_admin}
  132. ]},
  133. {mod_offline, []},
  134. {mod_privacy, []},
  135. {mod_private, []},
  136. {mod_pubsub, [ % requires mod_caps
  137. {access_createnode, pubsub_createnode},
  138. {ignore_pep_from_offline, true},
  139. {last_item_cache, false},
  140. {plugins, ["flat", "hometree", "pep"]},
  141. {max_items_node, 1000}
  142. ]},
  143. {mod_register, [
  144. {access, register}
  145. ]},
  146. {mod_roster, []},
  147. {mod_shared_roster,[]},
  148. {mod_time, []},
  149. {mod_vcard, []},
  150. {mod_version, []},
  151. {mod_admin_extra, []}
  152. ]}.
Add Comment
Please, Sign In to add comment