nixos/nextcloud: redirect /.well-known/*dav to https url

Fixes #113155
wip/yesman
Maximilian Bosch 3 years ago
parent 859d540508
commit f89652a23e
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E
  1. 4
      nixos/modules/services/web-apps/nextcloud.nix

@ -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;
'';

Loading…
Cancel
Save