add archiver and app provider to capabilities

This commit is contained in:
Willy Kloucek
2021-09-22 12:01:24 +02:00
parent ca3ec82e8c
commit b06846546d

View File

@@ -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" {