feat: Rises the stanza limit for unlimited jids (jicofo).

c5c4449fbc/doc/debian/jitsi-meet-prosody/prosody.cfg.lua-jvb.example (L24)
This commit is contained in:
Дамян Минков 2021-08-09 11:08:02 -05:00
parent c5c4449fbc
commit ed98eca326
1 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,9 @@ end
local unlimited_jids = module:get_option_inherited_set("unlimited_jids", {}); local unlimited_jids = module:get_option_inherited_set("unlimited_jids", {});
-- rises the limit of the stanza size for the unlimited jids, default is 10MB
local unlimited_stanza_size_limit = module:get_option_number("unlimited_size", 10*1024*1024);
if unlimited_jids:empty() then if unlimited_jids:empty() then
return; return;
end end
@ -20,5 +23,10 @@ module:hook("authentication-success", function (event)
elseif session.throttle then elseif session.throttle then
session.throttle = nil; session.throttle = nil;
end end
if unlimited_stanza_size_limit then
module:log('info', 'Setting stanza size limits for %s to %s', jid, unlimited_stanza_size_limit)
session.stream:set_stanza_size_limit(unlimited_stanza_size_limit);
end
end end
end); end);