]> git.pld-linux.org Git - packages/ejabberd.git/blob - ejabberd-config.patch
- read hosts, too
[packages/ejabberd.git] / ejabberd-config.patch
1 diff -dur -x '*~' ejabberd-1.1.0.orig/src/ejabberd.cfg.example ejabberd-1.1.0/src/ejabberd.cfg.example
2 --- ejabberd-1.1.0.orig/src/ejabberd.cfg.example        2006-04-22 15:50:30.000000000 +0200
3 +++ ejabberd-1.1.0/src/ejabberd.cfg.example     2006-04-26 10:36:38.000000000 +0200
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 @@ -112,22 +117,32 @@
31  
32  % Listened ports:
33  {listen,
34 +% TSL disabled, enable _after_ providing the certificate
35   [{5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper},
36                             {max_stanza_size, 65536},
37 -                           starttls, {certfile, "./ssl.pem"}]},
38 -  {5223, ejabberd_c2s,     [{access, c2s},
39 -                           {max_stanza_size, 65536},
40 -                           tls, {certfile, "./ssl.pem"}]},
41 +%                          starttls, {certfile, "./ssl.pem"}
42 +                           ]},
43 +%  {5223, ejabberd_c2s,     [{access, c2s},
44 +%                          {max_stanza_size, 65536},
45 +%                          tls, {certfile, "./ssl.pem"}]},
46    % Use these two lines instead if TLS support is not compiled
47    %{5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper}]},
48    %{5223, ejabberd_c2s,     [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
49    {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper},
50                             {max_stanza_size, 131072}
51                            ]},
52 -  {5280, ejabberd_http,    [http_poll, web_admin]},
53 -  {8888, ejabberd_service, [{access, all},
54 -                           {hosts, ["icq.localhost", "sms.localhost"],
55 -                            [{password, "secret"}]}]}
56 +% External services. 
57 +% To enable more than one you _must_ change port numbers (here and in service's config)
58 +%  {5347, ejabberd_service, [{access, all},
59 +%                          {hosts, ["icq.localhost", "sms.localhost"],
60 +%                           [{password, ">secret<"}]}]},
61 +%  {5347, ejabberd_service, [{access, all},
62 +%                          {host, "gg.localhost",
63 +%                           [{password, ">secret<"}]}]},
64 +%  {5347, ejabberd_service, [{access, all},
65 +%                          {hosts, ["ircnet.localhost", "freenode.localhost"],
66 +%                           [{password, ">secret<"}]}]},
67 +  {5280, ejabberd_http,    [http_poll, web_admin]}
68   ]}.
69  
70  
71 Only in ejabberd-1.1.0/src: ejabberd.cfg.example.orig
72 Only in ejabberd-1.1.0/src: ejabberd.cfg.example.rej
This page took 0.09391 seconds and 3 git commands to generate.