Merge pull request #113187 from Ma27/nextcloud-dav

nixos/nextcloud: redirect /.well-known/*dav to https url
This commit is contained in:
Maximilian Bosch 2021-02-15 18:53:19 +01:00 committed by GitHub
commit 31864de85d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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