From 1c0efcd202170ae69adc94c586e6c4a15fdd4412 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 30 Sep 2023 00:17:58 +0200 Subject: fix jitsi? --- host/Rory-nginx/services/nginx/rory.gay/jitsi.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'host') diff --git a/host/Rory-nginx/services/nginx/rory.gay/jitsi.nix b/host/Rory-nginx/services/nginx/rory.gay/jitsi.nix index a9b3354..ee814f4 100755 --- a/host/Rory-nginx/services/nginx/rory.gay/jitsi.nix +++ b/host/Rory-nginx/services/nginx/rory.gay/jitsi.nix @@ -1,5 +1,16 @@ { config, pkgs, lib, ... }: +let + overrideJs = filePath: varName: newContent: appendExtra: + let + oldContent = builtins.readFile filePath; + regex = "var ${varName} = {[^}]*};"; + newJs = builtins.replaceStrings [ regex ] [ "var ${varName} = ${newContent};" ] oldContent; + in + builtins.writeFile filePath newJs; + + cfg = config.services.jitsi-meet; +in { enableACME = true; addSSL = true; -- cgit 1.4.1