Archived
1
0
Fork 0

prosody: update example-config to my best practise

This commit is contained in:
Joerg Elfring 2018-11-22 18:02:58 +01:00
parent ccef0cea27
commit cb5b99de86

View file

@ -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
@ -77,15 +84,15 @@ modules_enabled = {
"admin_blocklist"; "admin_blocklist";
"blocking"; "blocking";
"carbons"; "carbons";
"cloud_notify";
"csi"; "csi";
"mam"; "mam";
"privacy_lists"; "privacy_lists";
"pep_vcard_avatar";
"smacks"; "smacks";
"smacks_offline";
"http_upload"; "http_upload";
-- The following module enables push notifications for Android and iOS. "omemo_all_access";
-- Most likely, you want to enable this. However, it is disabled by
-- default, as it involves a third party server.
--"cloud_notify";
}; };
-- 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)
-- --