Skip to content
Snippets Groups Projects
Commit cfe11844 authored by Bob Mottram's avatar Bob Mottram
Browse files

Set the xmpp upload max limit to the same size as Signal

parent 35e6f7c5
No related branches found
No related tags found
No related merge requests found
......@@ -725,6 +725,11 @@ function upgrade_xmpp {
xmpp_restart=1
fi
if grep -q 'http_upload_file_size_limit = 307200' /etc/prosody/prosody.cfg.lua; then
sed -i 's|http_upload_file_size_limit =.*|http_upload_file_size_limi t= 25165824|g' /etc/prosody/prosody.cfg.lua
xmpp_restart=1
fi
# extra battery saving
prosody_add_module "csi_compat"
prosody_add_module "csi_battery_saver"
......@@ -1280,7 +1285,7 @@ function xmpp_create_config {
echo '';
echo 'Include "conf.d/*.cfg.lua"';
echo 'http_upload_path = "/var/lib/prosody/http_uploads"';
echo 'http_upload_file_size_limit = 307200';
echo 'http_upload_file_size_limit = 25165824';
echo '';
echo "Component \"chat.${DEFAULT_DOMAIN_NAME}\" \"muc\"";
echo ' name = "Chatrooms"';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment