Unverified Commit 3e7ce75d authored by lassulus's avatar lassulus Committed by GitHub
Browse files

jitsi-meet and prosody Added ownerallowkick patch and all_owners module (#155755)

parents caf57108 2411e6ee
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -280,6 +280,7 @@ in
          User = "jitsi-videobridge";
          Group = "jitsi-meet";

          AmbientCapabilities = "CAP_NET_BIND_SERVICE";
          CapabilityBoundingSet = "";
          NoNewPrivileges = true;
          ProtectSystem = "strict";
+9 −2
Original line number Diff line number Diff line
@@ -342,7 +342,14 @@ let
          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 {
        type = types.bool;
        default = true;
@@ -856,7 +863,7 @@ in

      ${lib.concatMapStrings (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}
            restrict_room_creation = ${toLua muc.restrictRoomCreation}
            max_history_messages = ${toLua muc.maxHistoryMessages}
+11 −0
Original line number Diff line number Diff line
@@ -187,6 +187,16 @@ in
        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 {
      type = bool;
      default = false;
@@ -240,6 +250,7 @@ in
        {
          domain = "conference.${cfg.hostName}";
          name = "Jitsi Meet MUC";
          allowners_muc = cfg.prosody.allowners_muc;
          roomLocking = false;
          roomDefaultPublicJids = true;
          extraConfig = ''