Added Allowners muc module to prosody and jitsi-meet

This commit is contained in:
Marcel Novotny 2025-03-25 23:17:58 +01:00
parent cef6f1b83c
commit 2411e6eecd
3 changed files with 21 additions and 2 deletions

View file

@ -280,6 +280,7 @@ in
User = "jitsi-videobridge"; User = "jitsi-videobridge";
Group = "jitsi-meet"; Group = "jitsi-meet";
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
CapabilityBoundingSet = ""; CapabilityBoundingSet = "";
NoNewPrivileges = true; NoNewPrivileges = true;
ProtectSystem = "strict"; ProtectSystem = "strict";

View file

@ -342,7 +342,14 @@ let
question can be created again. question can be created again.
''; '';
}; };
allowners_muc = mkOption {
type = types.bool;
default = false;
description = ''
Add module allowners, any user in chat is able to
kick other. Usefull in jitsi-meet to kick ghosts.
'';
};
vcard_muc = mkOption { vcard_muc = mkOption {
type = types.bool; type = types.bool;
default = true; default = true;
@ -856,7 +863,7 @@ in
${lib.concatMapStrings (muc: '' ${lib.concatMapStrings (muc: ''
Component ${toLua muc.domain} "muc" Component ${toLua muc.domain} "muc"
modules_enabled = { "muc_mam"; ${optionalString muc.vcard_muc ''"vcard_muc";'' } } modules_enabled = { "muc_mam"; ${optionalString muc.vcard_muc ''"vcard_muc";'' } ${optionalString muc.allowners_muc ''"muc_allowners";'' } }
name = ${toLua muc.name} name = ${toLua muc.name}
restrict_room_creation = ${toLua muc.restrictRoomCreation} restrict_room_creation = ${toLua muc.restrictRoomCreation}
max_history_messages = ${toLua muc.maxHistoryMessages} max_history_messages = ${toLua muc.maxHistoryMessages}

View file

@ -187,6 +187,16 @@ in
off if you want to configure it manually. off if you want to configure it manually.
''; '';
}; };
prosody.allowners_muc = mkOption {
type = bool;
default = false;
description = ''
Add module allowners, any user in chat is able to
kick other. Usefull in jitsi-meet to kick ghosts.
'';
};
prosody.lockdown = mkOption { prosody.lockdown = mkOption {
type = bool; type = bool;
default = false; default = false;
@ -240,6 +250,7 @@ in
{ {
domain = "conference.${cfg.hostName}"; domain = "conference.${cfg.hostName}";
name = "Jitsi Meet MUC"; name = "Jitsi Meet MUC";
allowners_muc = cfg.prosody.allowners_muc;
roomLocking = false; roomLocking = false;
roomDefaultPublicJids = true; roomDefaultPublicJids = true;
extraConfig = '' extraConfig = ''