Advertisement
Guest User

Example ejabberd config file

a guest
Dec 17th, 2011
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1.  
  2. {loglevel, 2}.
  3.  
  4. {hosts, ["chatdomain.com"]}.
  5.  
  6. {listen,
  7. [
  8.  
  9. {5222, ejabberd_c2s, [
  10. {access, c2s},
  11. {shaper, c2s_shaper},
  12. {max_stanza_size, 65536},
  13. {max_fsm_queue, 1000}
  14. ]},
  15.  
  16. {5269, ejabberd_s2s_in, [
  17. {shaper, s2s_shaper},
  18. {max_stanza_size, 131072}
  19. ]},
  20.  
  21. {5280, ejabberd_http, [
  22. http_bind,
  23. http_poll,
  24. web_admin
  25. ]}
  26. ]}.
  27.  
  28. {host_config, "chatdomain.com", [{auth_method, [internal, anonymous]},{allow_multiple_connections, false},{anonymous_protocol, both}]}.
  29.  
  30. {shaper, normal, {maxrate, 1000}}.
  31. {shaper, fast, {maxrate, 50000}}.
  32. {max_fsm_queue, 1000}.
  33.  
  34. {acl, admin, {user, "admin", "chatdomain.com"}}.
  35. {acl, mucadmins, {user, "chatadmin", "chatdomain.com"}}.
  36. %{acl, mucadmins, {user, "uncognitous", "chatdomain.com"}}.
  37.  
  38. {acl, local, {user_regexp, ""}}.
  39.  
  40. {access, max_user_sessions, [{10, all}]}.
  41. {access, max_user_offline_messages, [{5000, admin}, {100, all}]}.
  42. {access, local, [{allow, local}]}.
  43. {access, c2s, [{deny, blocked},
  44. {allow, all}]}.
  45. {access, c2s_shaper, [{none, admin},
  46. {normal, all}]}.
  47. {access, s2s_shaper, [{fast, all}]}.
  48. {access, announce, [{allow, admin}]}.
  49. {access, configure, [{allow, admin}]}.
  50. {access, muc_admin, [{allow, admin}]}.
  51. {access, muc_admin, [{allow, mucadmins}]}.
  52. {access, muc_create, [{allow, all}]}.
  53. {access, muc, [{allow, all}]}.
  54. {access, pubsub_createnode, [{allow, local}]}.
  55.  
  56. {language, "pt"}.
  57.  
  58. {modules,
  59. [
  60. {mod_adhoc, []},
  61. {mod_announce, [{access, announce}]}, % recommends mod_adhoc
  62. {mod_caps, []},
  63. {mod_configure,[]}, % requires mod_adhoc
  64. {mod_disco, []},
  65. {mod_irc, []},
  66. {mod_http_bind, []},
  67. {mod_last, []},
  68. {mod_muc, [
  69. {host, "conference.@HOST@"},
  70. {access, muc},
  71. {access_create, muc_create},
  72. {access_persistent, muc_create},
  73. {access_admin, muc_admin}
  74. ]},
  75. {mod_muc_log,[
  76. {access_log, muc},
  77. {cssfile, "http://domain.com/public/chatlog.css"},
  78. {dirtype, plain},
  79. {dirname, room_jid},
  80. {outdir, "/var/www/nginx-default/chat/muclogs"},
  81. {timezone, universal},
  82. {spam_prevention, true},
  83. {top_link, {"http://domain.com/chat/", "My Chat"}}
  84. ]},
  85. {mod_muc_admin, []},
  86. {mod_offline, []},
  87. {mod_ping, []},
  88. {mod_privacy, []},
  89. {mod_private, []},
  90. {mod_pubsub, [
  91. {access_createnode, pubsub_createnode},
  92. {ignore_pep_from_offline, true}, % reduces resource comsumption, but XEP incompliant
  93. {last_item_cache, false},
  94. {plugins, ["flat", "hometree", "pep"]} % pep requires mod_caps
  95. ]},
  96. {mod_register, [
  97. {welcome_message, {"Welcome!",
  98. "Hi.\nWelcome to this XMPP server."}},
  99. {access, register}
  100. ]},
  101. {mod_roster, []},
  102. {mod_shared_roster,[]},
  103. {mod_stats, []},
  104. {mod_time, []},
  105. {mod_vcard, []},
  106. {mod_shit, []},
  107. {mod_version, []}
  108. ]}.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement