mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
Merge pull request #277387 from traxys/jitsi_pam
nixos/jitsi-meet: allow to customize jitsi auth
This commit is contained in:
commit
387ef8710b
|
@ -188,7 +188,14 @@ in
|
||||||
description = lib.mdDoc ''The port which the Excalidraw backend for Jitsi should listen to.'';
|
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 {
|
config = mkIf cfg.enable {
|
||||||
|
@ -309,7 +316,7 @@ in
|
||||||
enabled = true;
|
enabled = true;
|
||||||
domain = cfg.hostName;
|
domain = cfg.hostName;
|
||||||
extraConfig = ''
|
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
|
c2s_require_encryption = false
|
||||||
admins = { "focus@auth.${cfg.hostName}" }
|
admins = { "focus@auth.${cfg.hostName}" }
|
||||||
smacks_max_unacked_stanzas = 5
|
smacks_max_unacked_stanzas = 5
|
||||||
|
|
Loading…
Reference in a new issue