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

Fixes #113155
This commit is contained in:
Maximilian Bosch 2021-02-15 11:03:12 +01:00
parent 859d540508
commit f89652a23e
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

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