From 668621dc639d4accff9817ca9d296a4ed35dc777 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 2 Sep 2023 18:28:18 -0700 Subject: [PATCH] Try double-escaping dots --- nextcloud-container.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nextcloud-container.nix b/nextcloud-container.nix index a76164e..ac2b1b2 100644 --- a/nextcloud-container.nix +++ b/nextcloud-container.nix @@ -184,7 +184,7 @@ in { "deny all;"; "~ ^/(?:.|autotest|occ|issue|indie|db_|console)".extraConfig = "deny all;"; - "~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+).php(?:$|/)" = + "~ ^/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+)\\.php(?:$|/)" = { fastcgiParams = { SCRIPT_FILENAME = @@ -194,7 +194,7 @@ in { front_controller_active = "true"; }; extraConfig = '' - fastcgi_split_path_info ^(.+?\.php)(\/.*|)$; + fastcgi_split_path_info ^(.+?\\.php)(\\/.*|)$; set $path_info $fastcgi_path_info; try_files $fastcgi_script_name =404;