From 4db98ae43248fc111280c6d811e9fad06a574f4a Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Wed, 14 Jul 2021 14:10:24 +0200 Subject: [PATCH] mastus: fake nextcloud api --- mastus/radicale.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mastus/radicale.nix b/mastus/radicale.nix index 4dc3d53..b680f63 100644 --- a/mastus/radicale.nix +++ b/mastus/radicale.nix @@ -38,6 +38,16 @@ in locations."/" = { proxyPass = "http://127.0.0.1:${toString radicalePort}"; }; + # Fake nextcloud api: + # https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/issues/1#note_857357 + extraConfig = '' + rewrite ^/remote.php/carddav / redirect; + rewrite ^/remote.php/caldav / redirect; + + location /remote.php/webdav { + return 200; + } + ''; }; };