diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-30 00:17:58 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-09-30 00:17:58 +0200 |
commit | 1c0efcd202170ae69adc94c586e6c4a15fdd4412 (patch) | |
tree | eda794d8a37b8facda63577e67d46bbefd973446 /host/Rory-nginx/services | |
parent | fix jitsi? (diff) | |
download | Rory-Open-Architecture-1c0efcd202170ae69adc94c586e6c4a15fdd4412.tar.xz |
fix jitsi?
Diffstat (limited to 'host/Rory-nginx/services')
-rwxr-xr-x | host/Rory-nginx/services/nginx/rory.gay/jitsi.nix | 11 |
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; |