]> git.pld-linux.org Git - packages/ejabberd.git/blob - ejabberd-config.patch
- patch to the default config so it is quite safe and works out of the box
[packages/ejabberd.git] / ejabberd-config.patch
1 diff -dur ejabberd-0.7.orig/src/ejabberd.cfg.example ejabberd-0.7/src/ejabberd.cfg.example
2 --- ejabberd-0.7.orig/src/ejabberd.cfg.example  2004-07-11 22:51:50.000000000 +0200
3 +++ ejabberd-0.7/src/ejabberd.cfg.example       2004-09-01 11:59:00.267069546 +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,8 +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 -{access, register, [{allow, all}]}.
22 +
23 +% In-band registration disabled, let the admin decide who will use his server
24 +{access, register, [{allow, none}]}.
25  
26  % After successful registration user will get message with following subject
27  % and body:
28 @@ -92,12 +99,25 @@
29  % Listened ports:
30  {listen,
31   [{5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper}]},
32 -  {5223, ejabberd_c2s,     [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
33 +
34 +% SSL disabled, enable _after_ providing the certificate
35 +% {5223, ejabberd_c2s,     [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
36 +  
37    {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper}]},
38 -  {5280, ejabberd_http,    [http_poll, web_admin]},
39 -  {8888, ejabberd_service, [{access, all},
40 -                           {hosts, ["icq.localhost", "sms.localhost"],
41 -                            [{password, "secret"}]}]}
42 +
43 +% External services. 
44 +% To enable more than one you _must_ change port numbers (here and in service's config)
45 +%  {5347, ejabberd_service, [{access, all},
46 +%                          {hosts, ["icq.localhost", "sms.localhost"],
47 +%                           [{password, ">secret<"}]}]},
48 +%  {5347, ejabberd_service, [{access, all},
49 +%                          {host, "gg.localhost",
50 +%                           [{password, ">secret<"}]}]},
51 +%  {5347, ejabberd_service, [{access, all},
52 +%                          {hosts, ["ircnet.localhost", "freenode.localhost"],
53 +%                           [{password, ">secret<"}]}]},
54 +
55 +  {5280, ejabberd_http,    [http_poll, web_admin]}
56   ]}.
57  
58  % If SRV lookup fails, then port 5269 is used to communicate with remote server
This page took 0.061904 seconds and 4 git commands to generate.