mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 09:14:28 +00:00
Merge pull request #113187 from Ma27/nextcloud-dav
nixos/nextcloud: redirect /.well-known/*dav to https url
This commit is contained in:
commit
31864de85d
@ -603,10 +603,10 @@ in {
|
|||||||
priority = 210;
|
priority = 210;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
location = /.well-known/carddav {
|
location = /.well-known/carddav {
|
||||||
return 301 $scheme://$host/remote.php/dav;
|
return 301 /remote.php/dav;
|
||||||
}
|
}
|
||||||
location = /.well-known/caldav {
|
location = /.well-known/caldav {
|
||||||
return 301 $scheme://$host/remote.php/dav;
|
return 301 /remote.php/dav;
|
||||||
}
|
}
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user