Skip to content

Commit

Permalink
fix(nextcloud): batch file upload/download not working
Browse files Browse the repository at this point in the history
  • Loading branch information
diogotcorreia committed Apr 27, 2024
1 parent b580c0c commit 05da771
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions hosts/hera/nextcloud.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down

0 comments on commit 05da771

Please sign in to comment.