|
@@ -387,6 +387,23 @@ function xmpp_create_config {
|
387
|
387
|
echo 'Include "conf.d/*.cfg.lua"' >> /etc/prosody/prosody.cfg.lua
|
388
|
388
|
echo 'http_upload_path = "/var/lib/prosody/http_uploads"' >> /etc/prosody/prosody.cfg.lua
|
389
|
389
|
echo 'http_upload_file_size_limit = 50000000' >> /etc/prosody/prosody.cfg.lua
|
|
390
|
+ echo '' >> /etc/prosody/prosody.cfg.lua
|
|
391
|
+ echo "Component \"chat.${DEFAULT_DOMAIN_NAME}\" \"muc\"" >> /etc/prosody/prosody.cfg.lua
|
|
392
|
+ echo ' name = "Chatrooms"' >> /etc/prosody/prosody.cfg.lua
|
|
393
|
+ echo ' modules_enabled = {' >> /etc/prosody/prosody.cfg.lua
|
|
394
|
+ echo ' "muc_limits";' >> /etc/prosody/prosody.cfg.lua
|
|
395
|
+ echo ' "muc_log";' >> /etc/prosody/prosody.cfg.lua
|
|
396
|
+ echo ' "mam_muc";' >> /etc/prosody/prosody.cfg.lua
|
|
397
|
+ echo ' "muc_log_http";' >> /etc/prosody/prosody.cfg.lua
|
|
398
|
+ echo ' }' >> /etc/prosody/prosody.cfg.lua
|
|
399
|
+ echo 'storage = { muc_log = "sql"; }' >> /etc/prosody/prosody.cfg.lua
|
|
400
|
+ echo 'sql = { driver = "SQLite3", database = "prosody.sqlite" }' >> /etc/prosody/prosody.cfg.lua
|
|
401
|
+ echo 'muc_event_rate = 0.5;' >> /etc/prosody/prosody.cfg.lua
|
|
402
|
+ echo 'muc_burst_factor = 10;' >> /etc/prosody/prosody.cfg.lua
|
|
403
|
+ echo 'muc_log_by_default = false;' >> /etc/prosody/prosody.cfg.lua
|
|
404
|
+ echo 'muc_log_all_rooms = false;' >> /etc/prosody/prosody.cfg.lua
|
|
405
|
+ echo 'max_archive_query_results = 100;' >> /etc/prosody/prosody.cfg.lua
|
|
406
|
+ echo 'max_history_messages = 1000000;' >> /etc/prosody/prosody.cfg.lua
|
390
|
407
|
}
|
391
|
408
|
|
392
|
409
|
function install_xmpp_main {
|