]> git.pld-linux.org Git - packages/ejabberd.git/commitdiff
- patch to the default config so it is quite safe and works out of the box
authorJacek Konieczny <jajcus@pld-linux.org>
Wed, 1 Sep 2004 10:15:23 +0000 (10:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ejabberd-config.patch -> 1.1

ejabberd-config.patch [new file with mode: 0644]

diff --git a/ejabberd-config.patch b/ejabberd-config.patch
new file mode 100644 (file)
index 0000000..ecd04e8
--- /dev/null
@@ -0,0 +1,58 @@
+diff -dur ejabberd-0.7.orig/src/ejabberd.cfg.example ejabberd-0.7/src/ejabberd.cfg.example
+--- ejabberd-0.7.orig/src/ejabberd.cfg.example 2004-07-11 22:51:50.000000000 +0200
++++ ejabberd-0.7/src/ejabberd.cfg.example      2004-09-01 11:59:00.267069546 +0200
+@@ -1,5 +1,11 @@
+ % $Id$
++% This is a setup for working "localhost" server.
++% To make fully functional world-accessible Jabber server you will need to:
++% - change 'localhost' everywhere below to your desired Jabber server domain name
++% - provide SSL certificates and uncomment ssl settings
++% - modify everything else according to your needs
++
+ %override_acls.
+@@ -24,8 +30,9 @@
+ % Only admins can use configuration interface:
+ {access, configure, [{allow, admin}]}.
+-% Every username can be registered via in-band registration:
+-{access, register, [{allow, all}]}.
++
++% In-band registration disabled, let the admin decide who will use his server
++{access, register, [{allow, none}]}.
+ % After successful registration user will get message with following subject
+ % and body:
+@@ -92,12 +99,25 @@
+ % Listened ports:
+ {listen,
+  [{5222, ejabberd_c2s,     [{access, c2s}, {shaper, c2s_shaper}]},
+-  {5223, ejabberd_c2s,     [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
++
++% SSL disabled, enable _after_ providing the certificate
++% {5223, ejabberd_c2s,     [{access, c2s}, ssl, {certfile, "./ssl.pem"}]},
++  
+   {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper}]},
+-  {5280, ejabberd_http,    [http_poll, web_admin]},
+-  {8888, ejabberd_service, [{access, all},
+-                          {hosts, ["icq.localhost", "sms.localhost"],
+-                           [{password, "secret"}]}]}
++
++% External services. 
++% To enable more than one you _must_ change port numbers (here and in service's config)
++%  {5347, ejabberd_service, [{access, all},
++%                         {hosts, ["icq.localhost", "sms.localhost"],
++%                          [{password, ">secret<"}]}]},
++%  {5347, ejabberd_service, [{access, all},
++%                         {host, "gg.localhost",
++%                          [{password, ">secret<"}]}]},
++%  {5347, ejabberd_service, [{access, all},
++%                         {hosts, ["ircnet.localhost", "freenode.localhost"],
++%                          [{password, ">secret<"}]}]},
++
++  {5280, ejabberd_http,    [http_poll, web_admin]}
+  ]}.
+ % If SRV lookup fails, then port 5269 is used to communicate with remote server
This page took 0.088072 seconds and 4 git commands to generate.