prosody: update example-config to my best practise
This commit is contained in:
parent
ccef0cea27
commit
cb5b99de86
1 changed files with 32 additions and 20 deletions
|
@ -11,6 +11,13 @@
|
||||||
|
|
||||||
daemonize = false
|
daemonize = false
|
||||||
|
|
||||||
|
-- Interfaces to listen on
|
||||||
|
-- We are setting the ifaces to only listen on IPv4 addresses
|
||||||
|
interfaces = "*"
|
||||||
|
component_interface = "*"
|
||||||
|
local_interfaces = "127.0.0.1"
|
||||||
|
|
||||||
|
|
||||||
---------- Server-wide settings ----------
|
---------- Server-wide settings ----------
|
||||||
-- Settings in this section apply to the whole server and are the default settings
|
-- Settings in this section apply to the whole server and are the default settings
|
||||||
-- for any virtual hosts
|
-- for any virtual hosts
|
||||||
|
@ -75,17 +82,17 @@ modules_enabled = {
|
||||||
|
|
||||||
-- Community Modules
|
-- Community Modules
|
||||||
"admin_blocklist";
|
"admin_blocklist";
|
||||||
"blocking";
|
"blocking";
|
||||||
"carbons";
|
"carbons";
|
||||||
"csi";
|
"cloud_notify";
|
||||||
"mam";
|
"csi";
|
||||||
"privacy_lists";
|
"mam";
|
||||||
"smacks";
|
"privacy_lists";
|
||||||
"http_upload";
|
"pep_vcard_avatar";
|
||||||
-- The following module enables push notifications for Android and iOS.
|
"smacks";
|
||||||
-- Most likely, you want to enable this. However, it is disabled by
|
"smacks_offline";
|
||||||
-- default, as it involves a third party server.
|
"http_upload";
|
||||||
--"cloud_notify";
|
"omemo_all_access";
|
||||||
};
|
};
|
||||||
|
|
||||||
-- These modules are auto-loaded, but should you want
|
-- These modules are auto-loaded, but should you want
|
||||||
|
@ -152,12 +159,6 @@ storage = {
|
||||||
muc_log = "xmlarchive";
|
muc_log = "xmlarchive";
|
||||||
}
|
}
|
||||||
|
|
||||||
-- For the "sql" backend, you can uncomment *one* of the below to configure:
|
|
||||||
--sql = { driver = "SQLite3", database = "prosody.sqlite" } -- Default. 'database' is the filename.
|
|
||||||
--sql = { driver = "MySQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
|
|
||||||
--sql = { driver = "PostgreSQL", database = "prosody", username = "prosody", password = "secret", host = "localhost" }
|
|
||||||
|
|
||||||
|
|
||||||
-- Logging configuration
|
-- Logging configuration
|
||||||
-- For advanced logging see http://prosody.im/doc/logging
|
-- For advanced logging see http://prosody.im/doc/logging
|
||||||
log = {
|
log = {
|
||||||
|
@ -180,6 +181,11 @@ archive_expires_after = "2m"
|
||||||
-- certificate = "certs/fullchain.cer";
|
-- certificate = "certs/fullchain.cer";
|
||||||
--}
|
--}
|
||||||
|
|
||||||
|
-- Logging for MUCs
|
||||||
|
muc_log_by_default = true; -- Enable logging by default (can be disabled in room config)
|
||||||
|
muc_log_all_rooms = false; -- set to true to force logging of all rooms
|
||||||
|
max_history_messages = 20;
|
||||||
|
|
||||||
|
|
||||||
----------- Virtual hosts -----------
|
----------- Virtual hosts -----------
|
||||||
-- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
|
-- You need to add a VirtualHost entry for each domain you wish Prosody to serve.
|
||||||
|
@ -195,12 +201,18 @@ VirtualHost "example.com"
|
||||||
Component "conference.example.com" "muc"
|
Component "conference.example.com" "muc"
|
||||||
modules_enabled = {
|
modules_enabled = {
|
||||||
"mam_muc";
|
"mam_muc";
|
||||||
|
"remote_roster";
|
||||||
}
|
}
|
||||||
|
|
||||||
--Component "con@example.com" "admin_message"
|
-- Administration by XMPP messages
|
||||||
|
Component "con@example.com" "admin_message"
|
||||||
|
|
||||||
|
-- Set up a bytestream proxy for server-proxied file transfers:
|
||||||
|
Component "proxy65.example.com" "proxy65"
|
||||||
|
proxy65_acl = {
|
||||||
|
'example.com',
|
||||||
|
};
|
||||||
|
|
||||||
-- Set up a SOCKS5 bytestream proxy for server-proxied file transfers:
|
|
||||||
--Component "proxy.example.com" "proxy65"
|
|
||||||
|
|
||||||
---Set up an external component (default component port is 5347)
|
---Set up an external component (default component port is 5347)
|
||||||
--
|
--
|
||||||
|
|
Reference in a new issue