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

Commit

Permalink
Increase transfer token life time to 24h
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
  • Loading branch information
butonic committed Jul 1, 2020
1 parent 7cad45e commit 77cc899
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/allow-datagateway-transfers-24h.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion pkg/flagset/gateway.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package flagset

import (
"time"

"github.com/micro/cli/v2"
"github.com/owncloud/ocis-reva/pkg/config"
)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 77cc899

Please sign in to comment.