branch Attitude Adjustment packages
[12.09/packages.git] / net / prosody / patches / 001-conf.patch
1 --- a/prosody.cfg.lua.dist
2 +++ b/prosody.cfg.lua.dist
3 @@ -47,7 +47,7 @@ modules_enabled = {
4                 "register"; -- Allow users to register on this server using a client and change passwords
5         
6         -- Other specific functionality
7 -               --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
8 +               "posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
9                 --"console"; -- Opens admin telnet interface on localhost port 5582
10                 --"bosh"; -- Enable BOSH clients, aka "Jabber over HTTP"
11                 --"httpserver"; -- Serve static files from a directory over HTTP
12 @@ -65,6 +65,9 @@ modules_disabled = {
13  -- Disable account creation by default, for security
14  -- For more information see http://prosody.im/doc/creating_accounts
15  allow_registration = false;
16 +
17 +-- File to write pid in
18 +pidfile = "/var/run/prosody/prosody.pid";
19         
20  -- These are the SSL/TLS-related settings. If you don't want
21  -- to use SSL/TLS, you may comment or remove this
22 @@ -73,6 +76,15 @@ ssl = {
23         certificate = "certs/localhost.cert";
24  }
25  
26 +-- Errors to syslog
27 +-- All to /var/log/prosody/
28 +log = {
29 +       { levels = { "error" }; to = "syslog";  };
30 +       { levels = { "error" }; to = "file"; filename = "/var/log/prosody/prosody.err";  };
31 +       -- Change "info" to "debug" for more verbose logging
32 +       { levels = { min = "info" }; to = "file"; filename = "/var/log/prosody/prosody.log";  };
33 +}
34 +
35  ----------- Virtual hosts -----------
36  -- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
37  -- Settings under each VirtualHost entry apply *only* to that host.