Add global TUS capability + some config

Added global TUS capability in the config structure.
Added config switches for the advertised max chunk size and http method
override.
This commit is contained in:
Vincent Petry
2020-06-02 10:21:57 +02:00
parent f5272f3828
commit 699f3c4d4e
4 changed files with 35 additions and 0 deletions
+7
View File
@@ -143,6 +143,13 @@ func Frontend(cfg *config.Config) *cli.Command {
"blacklisted_files": []string{},
"undelete": true,
"versioning": true,
"tus_support": map[string]interface{}{
"version": "1.0.0",
"resumable": "1.0.0",
"extension": "creation,creation-with-upload",
"http_method_override": cfg.Reva.UploadHttpMethodOverride,
"max_chunk_size": int(cfg.Reva.UploadMaxChunkSize),
},
},
"dav": map[string]interface{}{},
"files_sharing": map[string]interface{}{