From 5ff05249cfbcea7a31dc008b159371bcef0f613b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Wed, 8 Jul 2020 23:55:25 +0200 Subject: [PATCH] nixos/jitsi-meet: allow more room names --- .../modules/services/web-apps/jitsi-meet.nix | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/nixos/modules/services/web-apps/jitsi-meet.nix b/nixos/modules/services/web-apps/jitsi-meet.nix index d2cdbdc8ba1..8b601910ba7 100644 --- a/nixos/modules/services/web-apps/jitsi-meet.nix +++ b/nixos/modules/services/web-apps/jitsi-meet.nix @@ -277,18 +277,14 @@ in enableACME = mkDefault true; forceSSL = mkDefault true; root = pkgs.jitsi-meet; - locations."~ ^/([a-zA-Z0-9=\\?]+)$" = { - extraConfig = '' - rewrite ^/(.*)$ / break; - ''; - }; - locations."/" = { - index = "index.html"; - extraConfig = '' - ssi on; - ''; - }; - locations."/http-bind" = { + extraConfig = '' + ssi on; + ''; + locations."@root_path".extraConfig = '' + rewrite ^/(.*)$ / break; + ''; + locations."~ ^/([^/\\?&:'\"]+)$".tryFiles = "$uri @root_path"; + locations."=/http-bind" = { proxyPass = "http://localhost:5280/http-bind"; extraConfig = '' proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;