mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-23 03:51:29 +00:00
dcaf96c773
This reverts commit 4faf8e7dda
.
32 lines
790 B
Nix
32 lines
790 B
Nix
{ config, lib, ... }:
|
|
let
|
|
domain = config.selfprivacy.domain;
|
|
in
|
|
{
|
|
options.selfprivacy.modules.jitsi-meet = {
|
|
enable = lib.mkOption {
|
|
default = false;
|
|
type = with lib.types; nullOr bool;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.selfprivacy.modules.jitsi-meet.enable {
|
|
services.jitsi-meet = {
|
|
enable = true;
|
|
hostName = "meet.${domain}";
|
|
nginx.enable = true;
|
|
interfaceConfig = {
|
|
SHOW_JITSI_WATERMARK = false;
|
|
SHOW_WATERMARK_FOR_GUESTS = false;
|
|
};
|
|
};
|
|
services.nginx.virtualHosts."meet.${domain}" = {
|
|
sslCertificate = "/var/lib/acme/${domain}/fullchain.pem";
|
|
sslCertificateKey = "/var/lib/acme/${domain}/key.pem";
|
|
forceSSL = true;
|
|
useACMEHost = domain;
|
|
enableACME = false;
|
|
};
|
|
};
|
|
}
|