]> git.pld-linux.org Git - packages/ejabberd.git/blob - ejabberd-config.patch
- enable ODBC
[packages/ejabberd.git] / ejabberd-config.patch
1 diff -dur -x '*~' ejabberd-1.0.0.orig/src/ejabberd.cfg.example ejabberd-1.0.0/src/ejabberd.cfg.example
2 --- ejabberd-1.0.0.orig/src/ejabberd.cfg.example        2005-12-08 22:35:15.000000000 +0100
3 +++ ejabberd-1.0.0/src/ejabberd.cfg.example     2005-12-15 18:36:10.000000000 +0100
4 @@ -1,5 +1,11 @@
5  % $Id$
6  
7 +% This is a setup for working "localhost" server.
8 +% To make fully functional world-accessible Jabber server you will need to:
9 +% - change 'localhost' everywhere below to your desired Jabber server domain name
10 +% - provide SSL certificates and uncomment ssl settings
11 +% - modify everything else according to your needs
12 +
13  %override_acls.
14  
15  
16 @@ -24,10 +30,9 @@
17  % Only admins can use configuration interface:
18  {access, configure, [{allow, admin}]}.
19  
20 -% Every username can be registered via in-band registration:
21 -% You could replace {allow, all} with {deny, all} to prevent user from using
22 -% in-band registration
23 -{access, register, [{allow, all}]}.
24 +% In-band registration disabled, let the admin decide who will use his server
25 +% replace "deny, all" with "allow, all" to enable in-band registration
26 +{access, register, [{deny, all}]}.
27  
28  % After successful registration user will get message with following subject
29  % and body:
30 @@ -103,18 +108,29 @@
31  
32  % Listened ports:
33  {listen,
34 - [{5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper},
35 -                           starttls, {certfile, "./ssl.pem"}]},
36 -  {5223, ejabberd_c2s,     [{access, c2s},
37 -                           tls, {certfile, "./ssl.pem"}]},
38 +% TSL disabled, enable _after_ providing the certificate
39 + [{5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper}
40 +%                            ,starttls, {certfile, "./ssl.pem"}
41 +                           ]},
42 +%  {5223, ejabberd_c2s,     [{access, c2s},
43 +%                          tls, {certfile, "./ssl.pem"}]},
44    % Use these two lines instead if TLS support is not compiled
45    %{5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper}]},
46    %{5223, ejabberd_c2s,     [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
47    {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper}]},
48 -  {5280, ejabberd_http,    [http_poll, web_admin]},
49 -  {8888, ejabberd_service, [{access, all},
50 -                           {hosts, ["icq.localhost", "sms.localhost"],
51 -                            [{password, "secret"}]}]}
52 +% External services. 
53 +% To enable more than one you _must_ change port numbers (here and in service's config)
54 +%  {5347, ejabberd_service, [{access, all},
55 +%                          {hosts, ["icq.localhost", "sms.localhost"],
56 +%                           [{password, ">secret<"}]}]},
57 +%  {5347, ejabberd_service, [{access, all},
58 +%                          {host, "gg.localhost",
59 +%                           [{password, ">secret<"}]}]},
60 +%  {5347, ejabberd_service, [{access, all},
61 +%                          {hosts, ["ircnet.localhost", "freenode.localhost"],
62 +%                           [{password, ">secret<"}]}]},
63 +
64 +  {5280, ejabberd_http,    [http_poll, web_admin]}
65   ]}.
66  
67  
This page took 0.162401 seconds and 3 git commands to generate.