]> git.pld-linux.org Git - packages/ejabberd.git/blame - ejabberd-config.patch
- Version: 1.1.0
[packages/ejabberd.git] / ejabberd-config.patch
CommitLineData
c5dd178d
JK
1diff -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
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
62583bb3 16@@ -24,10 +30,9 @@
0e77a2e3
JK
17 % Only admins can use configuration interface:
18 {access, configure, [{allow, admin}]}.
19
20-% Every username can be registered via in-band registration:
62583bb3
JK
21-% You could replace {allow, all} with {deny, all} to prevent user from using
22-% in-band registration
0e77a2e3 23-{access, register, [{allow, all}]}.
0e77a2e3 24+% In-band registration disabled, let the admin decide who will use his server
62583bb3
JK
25+% replace "deny, all" with "allow, all" to enable in-band registration
26+{access, register, [{deny, all}]}.
0e77a2e3
JK
27
28 % After successful registration user will get message with following subject
29 % and body:
c5dd178d 30@@ -112,22 +117,32 @@
ce566604 31
0e77a2e3
JK
32 % Listened ports:
33 {listen,
c5dd178d
JK
34+% TSL disabled, enable _after_ providing the certificate
35 [{5222, ejabberd_c2s, [{access, c2s}, {shaper, c2s_shaper},
36 {max_stanza_size, 65536},
ce566604
JK
37- starttls, {certfile, "./ssl.pem"}]},
38- {5223, ejabberd_c2s, [{access, c2s},
c5dd178d 39- {max_stanza_size, 65536},
ce566604 40- tls, {certfile, "./ssl.pem"}]},
c5dd178d
JK
41+% starttls, {certfile, "./ssl.pem"}
42+ ]},
ce566604 43+% {5223, ejabberd_c2s, [{access, c2s},
c5dd178d 44+% {max_stanza_size, 65536},
ce566604
JK
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"}]},
c5dd178d
JK
49 {5269, ejabberd_s2s_in, [{shaper, s2s_shaper},
50 {max_stanza_size, 131072}
51 ]},
0e77a2e3
JK
52- {5280, ejabberd_http, [http_poll, web_admin]},
53- {8888, ejabberd_service, [{access, all},
54- {hosts, ["icq.localhost", "sms.localhost"],
55- [{password, "secret"}]}]}
0e77a2e3
JK
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<"}]}]},
0e77a2e3
JK
67+ {5280, ejabberd_http, [http_poll, web_admin]}
68 ]}.
69
62583bb3 70
c5dd178d
JK
71Only in ejabberd-1.1.0/src: ejabberd.cfg.example.orig
72Only in ejabberd-1.1.0/src: ejabberd.cfg.example.rej
This page took 0.047221 seconds and 4 git commands to generate.