summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2024-05-05 18:15:29 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2024-05-05 18:16:20 +0200
commite633f8b7c1099abd121b3b36efff15916995f64d (patch)
tree314b8e865cfc2ceee533a29bd122a68a5ceff981
parentnextcloud*Packages: update (diff)
downloadnixpkgs-e633f8b7c1099abd121b3b36efff15916995f64d.tar.gz
nixos/nextcloud: add trailing slashes to carddav/caldav redirect
This seems to solve the problem with the warning about carddav/caldav redirects being broken.
-rw-r--r--nixos/modules/services/web-apps/nextcloud.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix
index 32f1d76c8175..3980012e66d6 100644
--- a/nixos/modules/services/web-apps/nextcloud.nix
+++ b/nixos/modules/services/web-apps/nextcloud.nix
@@ -1125,10 +1125,10 @@ in {
extraConfig = ''
absolute_redirect off;
location = /.well-known/carddav {
- return 301 /remote.php/dav;
+ return 301 /remote.php/dav/;
}
location = /.well-known/caldav {
- return 301 /remote.php/dav;
+ return 301 /remote.php/dav/;
}
location ~ ^/\.well-known/(?!acme-challenge|pki-validation) {
return 301 /index.php$request_uri;