Advertisement
Guest User

ejabberd config file

a guest
Feb 7th, 2011
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 4.61 KB | None | 0 0
  1. %% Admin user
  2. {acl, admin, {user, "tr", "vs-chat.vs"}}.
  3.  
  4. %% Hostname
  5. {hosts, ["vs-chat.vs"]}.
  6.  
  7. {loglevel, 5}.
  8.  
  9.  
  10. %%%   ===============
  11. %%%   LISTENING PORTS
  12.  
  13. {listen,
  14.  [
  15.   {5222, ejabberd_c2s, [
  16.             {access, c2s},
  17.             {shaper, c2s_shaper},
  18.             {max_stanza_size, 65536},
  19.                         %%zlib,
  20.             starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
  21.                ]},
  22.  
  23.   %%
  24.   %% To enable the old SSL connection method (deprecated) in port 5223:
  25.   %%
  26.   {5223, ejabberd_c2s, [
  27.             {access, c2s},
  28.             {shaper, c2s_shaper},
  29.             {max_stanza_size, 65536},
  30.                       zlib,
  31.             tls, {certfile, "/etc/ejabberd/ejabberd.pem"}
  32.                ]},
  33.  
  34.   {5269, ejabberd_s2s_in, [
  35.                {shaper, s2s_shaper},
  36.                {max_stanza_size, 131072}
  37.               ]},
  38.  
  39.   {5280, ejabberd_http, [
  40.              %%{request_handlers,
  41.              %% [
  42.              %%  {["pub", "archive"], mod_http_fileserver}
  43.              %% ]},
  44.              captcha,
  45.              http_bind,
  46.              http_poll,
  47.              web_admin
  48.             ]},
  49.  
  50.   {5281, ejabberd_http, [
  51.             tls,
  52.             {certfile, "/etc/ejabberd/ejabberd.pem"},
  53.             register
  54.                         ]}
  55.  
  56.  ]}.
  57.  
  58. {s2s_use_starttls, true}.
  59. {s2s_certfile, "/etc/ejabberd/ejabberd.pem"}.
  60.  
  61. %%%   ==============
  62. %%%   AUTHENTICATION
  63.  
  64. {auth_method, internal}.
  65.  
  66. %%%   ===============
  67. %%%   TRAFFIC SHAPERS
  68.  
  69. {shaper, normal, {maxrate, 1000}}.
  70. {shaper, fast, {maxrate, 50000}}.
  71.  
  72. %%%   ====================
  73. %%%   ACCESS CONTROL LISTS
  74.  
  75. {acl, local, {user_regexp, ""}}.
  76.  
  77. %%%   ============
  78. %%%   ACCESS RULES
  79.  
  80. {access, max_user_sessions, [{10, all}]}.
  81. {access, max_user_offline_messages, [{5000, admin}, {100, all}]}.
  82. {access, local, [{allow, local}]}.
  83. {access, c2s, [{deny, blocked}, {allow, all}]}.
  84. {access, c2s_shaper, [{none, admin}, {normal, all}]}.
  85. {access, s2s_shaper, [{fast, all}]}.
  86. {access, announce, [{allow, admin}]}.
  87. {access, configure, [{allow, admin}]}.
  88. {access, muc_admin, [{allow, admin}]}.
  89. {access, muc, [{allow, all}]}.
  90. {access, register, [{allow, all}]}.
  91. {access, pubsub_createnode, [{allow, all}]}.
  92.  
  93. %%%   ================
  94. %%%   DEFAULT LANGUAGE
  95.  
  96. {language, "en"}.
  97.  
  98. %%%   =======
  99. %%%   CAPTCHA
  100.  
  101. {captcha_cmd, "/usr/lib/ejabberd/priv/bin/captcha.sh"}.
  102. %%{captcha_host, "localhost:5280"}.
  103.  
  104.  
  105. %%%   =======
  106. %%%   MODULES
  107.  
  108. {modules,
  109.  [
  110.   {mod_adhoc,    []},
  111.   {mod_announce, [{access, announce}]}, % requires mod_adhoc
  112.   {mod_caps,     []},
  113.   {mod_configure,[]}, % requires mod_adhoc
  114.   {mod_admin_extra, []},
  115.   {mod_disco,    []},
  116.   %%{mod_echo,   [{host, "echo.localhost"}]},
  117.   {mod_irc,      [{access, all},
  118.                   {host, "vs-chat.vs"}]},
  119.   %% NOTE that mod_http_fileserver must also be enabled in the
  120.   %% "request_handlers" clause of the "ejabberd_http" listener
  121.   %% configuration (see the "LISTENING PORTS" section above).
  122.   %%{mod_http_fileserver, [
  123.   %%                       {docroot, "/var/www"},
  124.   %%                       {accesslog, "/var/log/ejabberd/access.log"}
  125.   %%                      ]},
  126.   {mod_last,     []},
  127.   {mod_muc,      [
  128.           %%{host, "conference.@HOST@"},
  129.           {access, muc},
  130.           {access_create, muc},
  131.           {access_persistent, muc},
  132.           {access_admin, muc_admin},
  133.           {max_users, 500}
  134.          ]},
  135.   %%{mod_muc_log,[]},
  136.   {mod_offline,  [{access_max_user_messages, max_user_offline_messages}]},
  137.   {mod_privacy,  []},
  138.   {mod_private,  []},
  139.   {mod_proxy65,  [
  140.           {access, local},
  141.           {shaper, c2s_shaper}
  142.          ]},
  143.   {mod_pubsub,   [ % requires mod_caps
  144.           {access_createnode, pubsub_createnode},
  145.           {pep_sendlast_offline, false},
  146.           {last_item_cache, false},
  147.           %%{plugins, ["default", "pep"]}
  148.           {plugins, ["flat", "hometree", "pep"]}  % pep requires mod_caps
  149.          ]},
  150.   {mod_register, [
  151.           %%
  152.           %% After successful registration, the user receives
  153.           %% a message with this subject and body.
  154.           %%
  155.           {welcome_message, {"Welcome!",
  156.                      "Welcome to a Jabber service powered by Debian. "
  157.                      "For information about Jabber visit "
  158.                      "http://www.jabber.org"}},
  159.           %% Replace it with 'none' if you don't want to send such message:
  160.           {welcome_message, "Willkommen auf dem Jabber-Server das VS-Netzes!"},
  161.  
  162.           %%
  163.           %% When a user registers, send a notification to
  164.           %% these Jabber accounts.
  165.           %%
  166.           %%{registration_watchers, ["admin1@example.org"]},
  167.  
  168.           {access, register}
  169.          ]},
  170.   {mod_register_web, []},
  171.   {mod_roster,   []},
  172.   %%{mod_service_log,[]},
  173.   %%{mod_shared_roster,[]},
  174.   {mod_stats,    []},
  175.   {mod_time,     []},
  176.   {mod_vcard,    []},
  177.   {mod_version,  []}
  178.  ]}.
  179.  
  180. %%% $Id: ejabberd.cfg.example 2497 2009-08-17 20:27:28Z cromain $
  181.  
  182. %%% Local Variables:
  183. %%% mode: erlang
  184. %%% End:
  185. %%% vim: set filetype=erlang tabstop=8:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement