From f89652a23e80ec0aa74220304f71aba893704947 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 15 Feb 2021 11:03:12 +0100 Subject: [PATCH] nixos/nextcloud: redirect /.well-known/*dav to https url Fixes #113155 --- nixos/modules/services/web-apps/nextcloud.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index 60d403553352..c8cacdc58021 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/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; '';