mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-18 15:13:32 -05:00
add new config options for the http client (#330)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
committed by
GitHub
parent
a6346a1a98
commit
ac26af32cf
@@ -121,12 +121,16 @@ func Frontend(cfg *config.Config) *cli.Command {
|
||||
"services": map[string]interface{}{
|
||||
"datagateway": map[string]interface{}{
|
||||
"transfer_shared_secret": cfg.Reva.TransferSecret,
|
||||
"timeout": 86400,
|
||||
"insecure": true,
|
||||
},
|
||||
"ocdav": map[string]interface{}{
|
||||
"prefix": "",
|
||||
"chunk_folder": "/var/tmp/reva/chunks",
|
||||
"files_namespace": cfg.Reva.OCDav.DavFilesNamespace,
|
||||
"webdav_namespace": cfg.Reva.OCDav.WebdavNamespace,
|
||||
"timeout": 86400,
|
||||
"insecure": true,
|
||||
"disable_tus": cfg.Reva.UploadDisableTus,
|
||||
},
|
||||
"ocs": map[string]interface{}{
|
||||
|
||||
@@ -128,7 +128,9 @@ func StorageEOSData(cfg *config.Config) *cli.Command {
|
||||
"user_layout": cfg.Reva.Storages.EOS.Layout,
|
||||
},
|
||||
},
|
||||
"temp_folder": cfg.Reva.StorageEOSData.TempFolder,
|
||||
"timeout": 86400,
|
||||
"insecure": true,
|
||||
"disable_tus": false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -146,7 +146,9 @@ func StorageHomeData(cfg *config.Config) *cli.Command {
|
||||
"prefix": cfg.Reva.Storages.S3.Prefix,
|
||||
},
|
||||
},
|
||||
"temp_folder": cfg.Reva.StorageHomeData.TempFolder,
|
||||
"timeout": 86400,
|
||||
"insecure": true,
|
||||
"disable_tus": false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -146,7 +146,9 @@ func StorageOCData(cfg *config.Config) *cli.Command {
|
||||
"prefix": cfg.Reva.Storages.S3.Prefix,
|
||||
},
|
||||
},
|
||||
"temp_folder": cfg.Reva.StorageOCData.TempFolder,
|
||||
"timeout": 86400,
|
||||
"insecure": true,
|
||||
"disable_tus": false,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -90,8 +90,8 @@ func GatewayWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: "transfer-expires",
|
||||
Value: 24 * 60 * 60,
|
||||
Usage: "Transfer secret for datagateway",
|
||||
Value: 24 * 60 * 60, // one day
|
||||
Usage: "Transfer token ttl in seconds",
|
||||
EnvVars: []string{"REVA_TRANSFER_EXPIRES"},
|
||||
Destination: &cfg.Reva.TransferExpires,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user