Skip to content

Commit

Permalink
nixos/nextcloud: add trailing slashes to carddav/caldav redirect
Browse files Browse the repository at this point in the history
This seems to solve the problem with the warning about carddav/caldav
redirects being broken.
  • Loading branch information
Ma27 committed May 5, 2024
1 parent af14a1c commit e633f8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/web-apps/nextcloud.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e633f8b

Please sign in to comment.