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
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
17 % Only admins can use configuration interface:
18 {access, configure, [{allow, admin}]}.
20 -% Every username can be registered via in-band registration:
21 -{access, register, [{allow, all}]}.
23 +% In-band registration disabled, let the admin decide who will use his server
24 +{access, register, [{allow, none}]}.
26 % After successful registration user will get message with following subject
31 [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper}]},
32 - {5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
34 +% SSL disabled, enable _after_ providing the certificate
35 +% {5223, ejabberd_c2s, [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
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"}]}]}
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<"}]}]},
55 + {5280, ejabberd_http, [http_poll, web_admin]}
58 % If SRV lookup fails, then port 5269 is used to communicate with remote server