|
|
1b9ad80 |
Patch by Robert Scheck <robert@fedoraproject.org> for prosody >= 0.11.0 which sets defaults
|
|
|
6ab1dc4 |
specific for Fedora and Red Hat Enterprise (including derivates like CentOS), adds helpful
|
|
|
6ab1dc4 |
comments about optional dependencies and finally includes some upstream recommendations.
|
|
|
6ab1dc4 |
|
|
|
1b9ad80 |
--- prosody-0.11.0/prosody.cfg.lua.dist 2018-11-19 11:42:24.000000000 +0100
|
|
|
1b9ad80 |
+++ prosody-0.11.0/prosody.cfg.lua.dist.config 2018-11-19 22:32:35.000000000 +0100
|
|
|
6ab1dc4 |
@@ -1,4 +1,4 @@
|
|
|
6ab1dc4 |
--- Prosody Example Configuration File
|
|
|
6ab1dc4 |
+-- Prosody XMPP Configuration File
|
|
|
6ab1dc4 |
--
|
|
|
6ab1dc4 |
-- Information on configuring Prosody can be found on our
|
|
|
6ab1dc4 |
-- website at https://prosody.im/doc/configure
|
|
|
6ab1dc4 |
@@ -9,8 +9,7 @@
|
|
|
6ab1dc4 |
-- If there are any errors, it will let you know what and where
|
|
|
6ab1dc4 |
-- they are, otherwise it will keep quiet.
|
|
|
6ab1dc4 |
--
|
|
|
6ab1dc4 |
--- The only thing left to do is rename this file to remove the .dist ending, and fill in the
|
|
|
6ab1dc4 |
--- blanks. Good luck, and happy Jabbering!
|
|
|
6ab1dc4 |
+-- Good luck, and happy Jabbering!
|
|
|
6ab1dc4 |
|
|
|
6ab1dc4 |
|
|
|
6ab1dc4 |
---------- Server-wide settings ----------
|
|
|
1b9ad80 |
@@ -131,7 +130,8 @@
|
|
|
6ab1dc4 |
-- through modules. An "sql" backend is included by default, but requires
|
|
|
6ab1dc4 |
-- additional dependencies. See https://prosody.im/doc/storage for more info.
|
|
|
6ab1dc4 |
|
|
|
6ab1dc4 |
---storage = "sql" -- Default is "internal"
|
|
|
6ab1dc4 |
+--storage = "sql" -- Default is "internal" (Note: "sql" requires installed
|
|
|
6ab1dc4 |
+-- lua-dbi RPM package)
|
|
|
6ab1dc4 |
|
|
|
6ab1dc4 |
-- For the "sql" backend, you can uncomment *one* of the below to configure:
|
|
|
6ab1dc4 |
--sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
|
|
|
1b9ad80 |
@@ -153,9 +153,11 @@
|
|
|
6ab1dc4 |
-- Logging configuration
|
|
|
6ab1dc4 |
-- For advanced logging see https://prosody.im/doc/logging
|
|
|
6ab1dc4 |
log = {
|
|
|
6ab1dc4 |
- info = "prosody.log"; -- Change 'info' to 'debug' for verbose logging
|
|
|
6ab1dc4 |
- error = "prosody.err";
|
|
|
6ab1dc4 |
- -- "*syslog"; -- Uncomment this for logging to syslog
|
|
|
6ab1dc4 |
+ -- Log everything of level "info" and higher (that is, all except "debug" messages)
|
|
|
6ab1dc4 |
+ -- to /var/log/prosody/prosody.log and errors also to /var/log/prosody/prosody.err
|
|
|
6ab1dc4 |
+ info = "/var/log/prosody/prosody.log"; -- Change 'info' to 'debug' for verbose logging
|
|
|
6ab1dc4 |
+ error = "/var/log/prosody/prosody.err"; -- Log errors also to file
|
|
|
6ab1dc4 |
+ -- error = "*syslog"; -- Log errors also to syslog
|
|
|
6ab1dc4 |
-- "*console"; -- Log to the console, useful for debugging with daemonize=false
|
|
|
6ab1dc4 |
}
|
|
|
6ab1dc4 |
|
|
|
1b9ad80 |
@@ -171,17 +173,20 @@
|
|
|
6ab1dc4 |
-- (from e.g. Let's Encrypt) see https://prosody.im/doc/certificates
|
|
|
6ab1dc4 |
|
|
|
6ab1dc4 |
-- Location of directory to find certificates in (relative to main config file):
|
|
|
6ab1dc4 |
-certificates = "certs"
|
|
|
6ab1dc4 |
+certificates = "/etc/pki/prosody/"
|
|
|
1b9ad80 |
|
|
|
1b9ad80 |
-- HTTPS currently only supports a single certificate, specify it here:
|
|
|
1b9ad80 |
--https_certificate = "certs/localhost.crt"
|
|
|
1b9ad80 |
|
|
|
6ab1dc4 |
+-- POSIX configuration
|
|
|
6ab1dc4 |
+-- For more info see https://prosody.im/doc/modules/mod_posix
|
|
|
6ab1dc4 |
+pidfile = "/run/prosody/prosody.pid";
|
|
|
6ab1dc4 |
+--daemonize = false -- Default is "true"
|
|
|
1b9ad80 |
+
|
|
|
6ab1dc4 |
----------- Virtual hosts -----------
|
|
|
6ab1dc4 |
-- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
|
|
|
6ab1dc4 |
-- Settings under each VirtualHost entry apply *only* to that host.
|
|
|
6ab1dc4 |
|
|
|
6ab1dc4 |
-VirtualHost "localhost"
|
|
|
6ab1dc4 |
-
|
|
|
6ab1dc4 |
--VirtualHost "example.com"
|
|
|
6ab1dc4 |
-- certificate = "/path/to/example.crt"
|
|
|
6ab1dc4 |
|
|
|
1b9ad80 |
@@ -203,3 +208,10 @@
|
|
|
6ab1dc4 |
--
|
|
|
6ab1dc4 |
--Component "gateway.example.com"
|
|
|
6ab1dc4 |
-- component_secret = "password"
|
|
|
6ab1dc4 |
+
|
|
|
6ab1dc4 |
+------ Additional config files ------
|
|
|
6ab1dc4 |
+-- For organizational purposes you may prefer to add VirtualHost and
|
|
|
6ab1dc4 |
+-- Component definitions in their own config files. This line includes
|
|
|
6ab1dc4 |
+-- all config files in /etc/prosody/conf.d/
|
|
|
6ab1dc4 |
+
|
|
|
6ab1dc4 |
+Include "conf.d/*.cfg.lua"
|
|
|
1b9ad80 |
--- prosody-0.11.0/core/certmanager.lua 2017-09-27 16:49:57.000000000 +0200
|
|
|
1b9ad80 |
+++ prosody-0.11.0/core/certmanager.lua.config 2017-10-01 15:49:12.000000000 +0200
|
|
|
6ab1dc4 |
@@ -94,7 +94,8 @@
|
|
|
6ab1dc4 |
|
|
|
6ab1dc4 |
-- Built-in defaults
|
|
|
6ab1dc4 |
local core_defaults = {
|
|
|
6ab1dc4 |
- capath = "/etc/ssl/certs";
|
|
|
6ab1dc4 |
+ capath = "/etc/pki/tls/certs";
|
|
|
6ab1dc4 |
+ cafile = "/etc/pki/tls/certs/ca-bundle.crt";
|
|
|
6ab1dc4 |
depth = 9;
|
|
|
6ab1dc4 |
protocol = "tlsv1+";
|
|
|
6ab1dc4 |
verify = (ssl_x509 and { "peer", "client_once", }) or "none";
|