Skip to content

Commit

Permalink
nixos/nextcloud: redirect /.well-known/*dav to https url
Browse files Browse the repository at this point in the history
Fixes #113155
  • Loading branch information
Ma27 committed Feb 15, 2021
1 parent 859d540 commit f89652a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/web-apps/nextcloud.nix
Expand Up @@ -603,10 +603,10 @@ in {
priority = 210;
extraConfig = ''
location = /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
return 301 /remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
return 301 /remote.php/dav;
}
try_files $uri $uri/ =404;
'';
Expand Down

0 comments on commit f89652a

Please sign in to comment.