Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Commit

Permalink
add new config options for the http client
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Jul 1, 2020
1 parent a6346a1 commit 0a41496
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 4 additions & 0 deletions pkg/command/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{
Expand Down
4 changes: 3 additions & 1 deletion pkg/command/storageeosdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
},
Expand Down
4 changes: 3 additions & 1 deletion pkg/command/storagehomedata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
},
Expand Down
4 changes: 3 additions & 1 deletion pkg/command/storageocdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions pkg/flagset/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 0a41496

Please sign in to comment.