Skip to content

Commit

Permalink
nixos/nextcloud: fix nginx config to allow copy/move-operations again
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma27 committed Oct 5, 2020
1 parent 9243c64 commit 609c4f4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions nixos/modules/services/web-apps/nextcloud.nix
Expand Up @@ -600,20 +600,19 @@ in {
fastcgi_read_timeout 120s;
'';
};
"~ \\.(?:css|js|svg|gif|map)$".extraConfig = ''
"~ \\.(?:css|js|woff2?|svg|gif|map)$".extraConfig = ''
try_files $uri /index.php$request_uri;
expires 6M;
access_log off;
'';
"~ \\.woff2?$".extraConfig = ''
try_files $uri /index.php$request_uri;
expires 7d;
access_log off;
'';
"~ ^\\/(?:updater|ocs-provider|ocm-provider)(?:$|\\/)".extraConfig = ''
try_files $uri/ =404;
index index.php;
'';
"~ \\.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$".extraConfig = ''
try_files $uri /index.php$request_uri;
access_log off;
'';
};
extraConfig = ''
index index.php index.html /index.php$request_uri;
Expand Down

0 comments on commit 609c4f4

Please sign in to comment.