2021-10-16 21:24:57 +03:00
|
|
|
{ lib, tools, ... }:
|
|
|
|
{
|
|
|
|
services.jitsi-meet = {
|
|
|
|
enable = true;
|
|
|
|
hostName = "meet.${tools.meta.domain}";
|
|
|
|
nginx.enable = true;
|
|
|
|
jicofo.enable = true;
|
|
|
|
videobridge.enable = true;
|
|
|
|
prosody.enable = true;
|
|
|
|
config.p2p.enabled = false;
|
|
|
|
};
|
|
|
|
services.nginx.virtualHosts."meet.${tools.meta.domain}" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."=/images/watermark.svg" = {
|
|
|
|
return = "200";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.services = lib.genAttrs [ "jicofo" "jitsi-meet-init-secrets" "jitsi-videobridge2" "prosody" ] (_: {
|
|
|
|
serviceConfig = {
|
|
|
|
LogNamespace = "meet";
|
|
|
|
Slice = "communications.slice";
|
|
|
|
};
|
|
|
|
});
|
2021-12-02 22:45:05 +02:00
|
|
|
boot.kernel.sysctl."net.core.rmem_max" = lib.mkForce 10485760;
|
2021-10-16 21:24:57 +03:00
|
|
|
}
|