From b06846546d72d228cd108154e564c74c621e7702 Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Wed, 22 Sep 2021 12:01:24 +0200 Subject: [PATCH] add archiver and app provider to capabilities --- storage/pkg/command/frontend.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/storage/pkg/command/frontend.go b/storage/pkg/command/frontend.go index 36d424a79..40289cdf0 100644 --- a/storage/pkg/command/frontend.go +++ b/storage/pkg/command/frontend.go @@ -54,12 +54,32 @@ func Frontend(cfg *config.Config) *cli.Command { desktopRedirectURIs[port] = fmt.Sprintf("http://localhost:%d", (port + 1024)) } + archivers := []map[string]interface{}{ + { + "enabled": true, + "version": "2.0.0", + "formats": []string{"tar", "zip"}, + "archiver_url": "/archiver", + }, + } + + appproviders := []map[string]interface{}{ + { + "enabled": true, + "version": "1.0.0", + "apps_url": "/app/list", + "open_url": "/app/open", + }, + } + filesCfg := map[string]interface{}{ "private_links": false, "bigfilechunking": false, "blacklisted_files": []string{}, "undelete": true, "versioning": true, + "archivers": archivers, + "app_providers": appproviders, } if cfg.Reva.DefaultUploadProtocol == "tus" {