From de7620af98a2ec3fdd36bc90a83cd0597a3fb89b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Tue, 16 Nov 2021 22:42:28 +0000 Subject: [PATCH] get rid of /home mount point MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- storage/pkg/command/gateway.go | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/storage/pkg/command/gateway.go b/storage/pkg/command/gateway.go index 89cf29774..c4b6aa9fa 100644 --- a/storage/pkg/command/gateway.go +++ b/storage/pkg/command/gateway.go @@ -220,20 +220,15 @@ func spacesRules(cfg *config.Config, logger log.Logger) map[string]map[string]in // generate rules based on default config return map[string]map[string]interface{}{ - "/home": { - "address": cfg.Reva.StorageUsers.Endpoint, - "space_type": "personal", - "space_owner_self": true, - }, - "/home/Shares": { - "address": cfg.Reva.StorageShares.Endpoint, - "space_type": "share", - "path_template": "/home/Shares/{{.Name}}", - }, "/users": { "address": cfg.Reva.StorageUsers.Endpoint, "space_type": "personal", - "path_template": "/users/{{.Owner.Id.OpaqueId}}", + "path_template": "/users/{{.Space.Owner.Id.OpaqueId}}", + }, + "/users/{{.CurrentUser.Id.OpaqueId}}/Shares/{{.Space.Name}}": { + "address": cfg.Reva.StorageShares.Endpoint, + "space_type": "share", + "path_template": "/users/{{.CurrentUser.Id.OpaqueId}}/Shares/{{.Space.Name}}", }, // public link storage returns the mount id of the actual storage "/public": {