Skip to content

Commit

Permalink
add --refresh-iam-interval flag to the gateway (#4593)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Apr 7, 2024
1 parent 6d76cab commit 3133e97
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func cmdGateway() *cli.Command {
Name: "domain",
Usage: "domain for virtual-host-style requests",
},
&cli.StringFlag{
Name: "refresh-iam-interval",
Usage: "interval to reload gateway IAM from configuration",
},
}

return &cli.Command{
Expand Down Expand Up @@ -125,6 +129,10 @@ func gateway(c *cli.Context) error {
os.Setenv("MINIO_DOMAIN", c.String("domain"))
}

if c.IsSet("refresh-iam-interval") {
os.Setenv("MINIO_REFRESH_IAM_INTERVAL", c.String("refresh-iam-interval"))
}

metaAddr := c.Args().Get(0)
listenAddr := c.Args().Get(1)
conf, jfs := initForSvc(c, "s3gateway", metaAddr)
Expand Down

0 comments on commit 3133e97

Please sign in to comment.