Increase transfer token life time to 24h

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2020-07-01 09:01:06 +02:00
parent 7cad45e4b5
commit 77cc899a44
2 changed files with 8 additions and 1 deletions
@@ -0,0 +1,5 @@
Enhancement: Allow datagateway transfers to take 24h
- Increase transfer token life time to 24h (PR #323)
https://github.com/owncloud/ocis-reva/pull/323
+3 -1
View File
@@ -1,6 +1,8 @@
package flagset
import (
"time"
"github.com/micro/cli/v2"
"github.com/owncloud/ocis-reva/pkg/config"
)
@@ -90,7 +92,7 @@ func GatewayWithConfig(cfg *config.Config) []cli.Flag {
},
&cli.IntFlag{
Name: "transfer-expires",
Value: 10,
Value: 24 * int(time.Hour),
Usage: "Transfer secret for datagateway",
EnvVars: []string{"REVA_TRANSFER_EXPIRES"},
Destination: &cfg.Reva.TransferExpires,