52 lines
2.1 KiB
Diff
52 lines
2.1 KiB
Diff
diff -ru prosody-0.9.2/prosody.cfg.lua.dist prosody-0.9.2-gentoo/prosody.cfg.lua.dist
|
|
--- prosody-0.9.2/prosody.cfg.lua.dist 2013-12-08 19:05:39.000000000 +0100
|
|
+++ prosody-0.9.2-gentoo/prosody.cfg.lua.dist 2014-01-27 03:00:44.929196948 +0100
|
|
@@ -1,5 +1,3 @@
|
|
--- Prosody Example Configuration File
|
|
---
|
|
-- Information on configuring Prosody can be found on our
|
|
-- website at http://prosody.im/doc/configure
|
|
--
|
|
@@ -7,9 +5,6 @@
|
|
-- when you have finished by running: luac -p prosody.cfg.lua
|
|
-- If there are any errors, it will let you know what and where
|
|
-- they are, otherwise it will keep quiet.
|
|
---
|
|
--- The only thing left to do is rename this file to remove the .dist ending, and fill in the
|
|
--- blanks. Good luck, and happy Jabbering!
|
|
|
|
|
|
---------- Server-wide settings ----------
|
|
@@ -63,7 +58,7 @@
|
|
--"http_files"; -- Serve static files from a directory over HTTP
|
|
|
|
-- Other specific functionality
|
|
- --"posix"; -- POSIX functionality, sends server to background, enables syslog, etc.
|
|
+ "posix"; -- POSIX functionality, sends server to background, enables syslog, etc. (Keep enabled for Gentoo.)
|
|
--"groups"; -- Shared roster support
|
|
--"announce"; -- Send announcement to all online users
|
|
--"welcome"; -- Welcome users who register accounts
|
|
@@ -72,6 +67,12 @@
|
|
--"legacyauth"; -- Legacy authentication. Only used by some old clients and bots.
|
|
};
|
|
|
|
+-- Settings for Gentoo init script and net-im/jabber-base permissions system:
|
|
+daemonize = true;
|
|
+prosody_user = "jabber";
|
|
+prosody_group = "jabber";
|
|
+pidfile = "/var/run/jabber/prosody.pid";
|
|
+
|
|
-- These modules are auto-loaded, but should you want
|
|
-- to disable them then uncomment them here:
|
|
modules_disabled = {
|
|
@@ -139,8 +140,8 @@
|
|
-- Logging configuration
|
|
-- For advanced logging see http://prosody.im/doc/logging
|
|
log = {
|
|
- info = "prosody.log"; -- Change 'info' to 'debug' for verbose logging
|
|
- error = "prosody.err";
|
|
+ info = "/var/log/jabber/prosody.log"; -- Change 'info' to 'debug' for verbose logging
|
|
+ error = "/var/log/jabber/prosody.err";
|
|
-- "*syslog"; -- Uncomment this for logging to syslog
|
|
-- "*console"; -- Log to the console, useful for debugging with daemonize=false
|
|
}
|