Merge pull request #277387 from traxys/jitsi_pam

nixos/jitsi-meet: allow to customize jitsi auth

lassulus 387ef871 33ad5978

Changed files
+9 -2
nixos
modules
services
web-apps
+9 -2
nixos/modules/services/web-apps/jitsi-meet.nix
···
description = lib.mdDoc ''The port which the Excalidraw backend for Jitsi should listen to.'';
};
-
secureDomain.enable = mkEnableOption (lib.mdDoc "Authenticated room creation");
+
secureDomain = {
+
enable = mkEnableOption (lib.mdDoc "Authenticated room creation");
+
authentication = mkOption {
+
type = types.str;
+
default = "internal_hashed";
+
description = lib.mdDoc ''The authentication type to be used by jitsi'';
+
};
+
};
};
config = mkIf cfg.enable {
···
enabled = true;
domain = cfg.hostName;
extraConfig = ''
-
authentication = ${if cfg.secureDomain.enable then "\"internal_hashed\"" else "\"jitsi-anonymous\""}
+
authentication = ${if cfg.secureDomain.enable then "\"${cfg.secureDomain.authentication}\"" else "\"jitsi-anonymous\""}
c2s_require_encryption = false
admins = { "focus@auth.${cfg.hostName}" }
smacks_max_unacked_stanzas = 5