mastus: fake nextcloud api

This commit is contained in:
Gabriel Ebner 2021-07-14 14:10:24 +02:00
parent 199a195ef8
commit 4db98ae432
1 changed files with 10 additions and 0 deletions

View File

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