From 05da771d59e72306d1c7e1577de9ba6a02c772d7 Mon Sep 17 00:00:00 2001 From: Diogo Correia Date: Sat, 27 Apr 2024 09:07:38 +0200 Subject: [PATCH] fix(nextcloud): batch file upload/download not working Related to https://github.com/nextcloud/docker/issues/2148 --- hosts/hera/nextcloud.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hosts/hera/nextcloud.nix b/hosts/hera/nextcloud.nix index ff9819b..a235312 100644 --- a/hosts/hera/nextcloud.nix +++ b/hosts/hera/nextcloud.nix @@ -95,6 +95,23 @@ in { redir /.well-known/* /index.php{uri} 301 # Nextcloud front-controller handles routes to /.well-known redir /remote/* /remote.php{uri} 301 + # Required for legacy + @notlegacy { + path *.php + not path /index* + not path /remote* + not path /public* + not path /cron* + not path /core/ajax/update* + not path /status* + not path /ocs/v1* + not path /ocs/v2* + not path /updater/* + not path /ocs-provider/* + not path */richdocumentscode/proxy* + } + rewrite @notlegacy /index.php{uri} + # Deny access to sensible files and directories @forbidden { path /build/* /tests/* /config/* /lib/* /3rdparty/* /templates/* /data/*