mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-24 13:08:26 -05:00
Fix config default value for token expiry
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package flagset
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/owncloud/ocis-reva/pkg/config"
|
||||
)
|
||||
@@ -92,7 +90,7 @@ func GatewayWithConfig(cfg *config.Config) []cli.Flag {
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: "transfer-expires",
|
||||
Value: 24 * int(time.Hour),
|
||||
Value: 24 * 60 * 60,
|
||||
Usage: "Transfer secret for datagateway",
|
||||
EnvVars: []string{"REVA_TRANSFER_EXPIRES"},
|
||||
Destination: &cfg.Reva.TransferExpires,
|
||||
|
||||
Reference in New Issue
Block a user