add max size and max num to the archiver capabilities

This commit is contained in:
Willy Kloucek
2021-09-26 15:05:08 +02:00
parent 67219f1ed1
commit bfb801b63d
2 changed files with 14 additions and 4 deletions

View File

@@ -56,10 +56,12 @@ func Frontend(cfg *config.Config) *cli.Command {
archivers := []map[string]interface{}{
{
"enabled": true,
"version": "2.0.0",
"formats": []string{"tar", "zip"},
"archiver_url": cfg.Reva.Archiver.ArchiverURL,
"enabled": true,
"version": "2.0.0",
"formats": []string{"tar", "zip"},
"archiver_url": cfg.Reva.Archiver.ArchiverURL,
"max_num_files": cfg.Reva.Archiver.MaxNumFiles,
"max_size": cfg.Reva.Archiver.MaxSize,
},
}