nixos-config/modules/services/server/jitsi.nix

47 lines
1.4 KiB
Nix
Raw Normal View History

2022-12-11 18:35:58 +01:00
2023-03-06 21:29:57 +01:00
{ config, pkgs, ... }:
2022-12-11 18:35:58 +01:00
{
services.jitsi-meet = {
enable = true;
hostName = "meet.kabtop.de";
2022-12-11 18:35:58 +01:00
config = {
enableWelcomePage = false;
prejoinPageEnabled = true;
defaultLang = "en";
};
interfaceConfig = {
SHOW_JITSI_WATERMARK = false;
SHOW_WATERMARK_FOR_GUESTS = false;
};
};
2023-03-06 21:29:57 +01:00
services.jibri = {
2023-03-06 20:53:21 +01:00
enable = true;
2023-03-06 21:29:57 +01:00
config = {
recording = {
recordings-directory = "/var/lib/jitsi-meet-recordings";
};
ffmpeg = {
#framerate = 30;
#video-encode-preset = "veryfast"; # https://trac.ffmpeg.org/wiki/Encode/H.264#a2.Chooseapresetandtune
h264-constant-rate-factor = 21; # https://trac.ffmpeg.org/wiki/Encode/H.264#a1.ChooseaCRFvalue
};
2023-03-06 20:53:21 +01:00
};
};
services.jitsi-videobridge = {
enable = true;
openFirewall = true;
};
2022-12-30 14:25:29 +01:00
services.prosody.extraConfig = ''
log = "/var/log/prosody/prosody.log"
'';
systemd.tmpfiles.rules = [
"d /var/log/prosody - prosody prosody"
2023-03-06 20:53:21 +01:00
"d ${config.services.jibri.config.recording.recordings-directory} 0750 jibri jibri -"
];
2022-12-11 18:35:58 +01:00
security.acme.defaults.email = "webmaster@kabtop.de";
2022-12-18 19:09:48 +01:00
security.acme.defaults.webroot = "/var/lib/acme/acme-challenge";
2022-12-11 18:35:58 +01:00
security.acme.acceptTerms = true;
}