From 396f200ec18ebb7f6657a0e360bea6f569d6fc7b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 5 Mar 2023 19:27:05 +0100 Subject: [PATCH] Create nginx_addition --- nextcloud/rootfs/defaults/nginx_addition | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nextcloud/rootfs/defaults/nginx_addition diff --git a/nextcloud/rootfs/defaults/nginx_addition b/nextcloud/rootfs/defaults/nginx_addition new file mode 100644 index 000000000..19a58581e --- /dev/null +++ b/nextcloud/rootfs/defaults/nginx_addition @@ -0,0 +1,23 @@ +location = /.well-known/host-meta { +return 301 $scheme://$http_hostpublic.php?service=host-meta; +} + +location = /.well-known/host-meta.json { +return 301 $scheme://$http_host/public.php?service=host-meta-json; +} + +location = /.well-known/carddav { +return 301 $scheme://$http_host/remote.php/dav; +} + +location = /.well-known/caldav { +return 301 $scheme://$http_host/remote.php/dav; +} + +location = /.well-known/webfinger{ +return 301 $scheme://$http_host/index.php/.well-known/webfinger; +} + +location = /.well-known/nodeinfo{ +return 301 $scheme://$http_host/index.php/.well-known/nodeinfo; +}