summary refs log tree commit diff
path: root/host/Rory-nginx/services/nginx
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-30 00:17:58 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-30 00:17:58 +0200
commit1c0efcd202170ae69adc94c586e6c4a15fdd4412 (patch)
treeeda794d8a37b8facda63577e67d46bbefd973446 /host/Rory-nginx/services/nginx
parentfix jitsi? (diff)
downloadRory-Open-Architecture-1c0efcd202170ae69adc94c586e6c4a15fdd4412.tar.xz
fix jitsi?
Diffstat (limited to 'host/Rory-nginx/services/nginx')
-rwxr-xr-xhost/Rory-nginx/services/nginx/rory.gay/jitsi.nix11
1 files changed, 11 insertions, 0 deletions
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;