]>
Commit | Line | Data |
---|---|---|
ce566604 JK |
1 | diff -dur ejabberd-0.7.5.orig/src/ejabberd.cfg.example ejabberd-0.7.5/src/ejabberd.cfg.example |
2 | --- ejabberd-0.7.5.orig/src/ejabberd.cfg.example 2004-10-08 22:40:28.000000000 +0200 | |
3 | +++ ejabberd-0.7.5/src/ejabberd.cfg.example 2004-10-10 23:49:42.453310527 +0200 | |
0e77a2e3 JK |
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: | |
ce566604 JK |
28 | @@ -95,18 +102,29 @@ |
29 | ||
0e77a2e3 JK |
30 | % Listened ports: |
31 | {listen, | |
ce566604 JK |
32 | - [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}, |
33 | - starttls, {certfile, "./ssl.pem"}]}, | |
34 | - {5223, ejabberd_c2s, [{access, c2s}, | |
35 | - tls, {certfile, "./ssl.pem"}]}, | |
36 | +% TSL disabled, enable _after_ providing the certificate | |
37 | + [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper} | |
38 | +% ,starttls, {certfile, "./ssl.pem"} | |
39 | + ]}, | |
40 | +% {5223, ejabberd_c2s, [{access, c2s}, | |
41 | +% tls, {certfile, "./ssl.pem"}]}, | |
42 | % Use these two lines instead if TLS support is not compiled | |
43 | %{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}]}, | |
44 | %{5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "./ssl.pem"}]}, | |
0e77a2e3 JK |
45 | {5269, ejabberd_s2s_in, [{shaper, s2s_shaper}]}, |
46 | - {5280, ejabberd_http, [http_poll, web_admin]}, | |
47 | - {8888, ejabberd_service, [{access, all}, | |
48 | - {hosts, ["icq.localhost", "sms.localhost"], | |
49 | - [{password, "secret"}]}]} | |
0e77a2e3 JK |
50 | +% External services. |
51 | +% To enable more than one you _must_ change port numbers (here and in service's config) | |
52 | +% {5347, ejabberd_service, [{access, all}, | |
53 | +% {hosts, ["icq.localhost", "sms.localhost"], | |
54 | +% [{password, ">secret<"}]}]}, | |
55 | +% {5347, ejabberd_service, [{access, all}, | |
56 | +% {host, "gg.localhost", | |
57 | +% [{password, ">secret<"}]}]}, | |
58 | +% {5347, ejabberd_service, [{access, all}, | |
59 | +% {hosts, ["ircnet.localhost", "freenode.localhost"], | |
60 | +% [{password, ">secret<"}]}]}, | |
61 | + | |
62 | + {5280, ejabberd_http, [http_poll, web_admin]} | |
63 | ]}. | |
64 | ||
65 | % If SRV lookup fails, then port 5269 is used to communicate with remote server |