allow DNS cache TTL to be configurable (#17709)

this is added for now as a hidden variable
This commit is contained in:
Harshavardhana
2023-07-24 15:13:35 -07:00
committed by GitHub
parent 14e1ace552
commit c32c71c836
2 changed files with 29 additions and 16 deletions

View File

@@ -121,6 +121,13 @@ var ServerFlags = []cli.Flag{
Hidden: true,
EnvVar: "MINIO_INTERFACE",
},
cli.DurationFlag{
Name: "dns-cache-ttl",
Usage: "custom DNS cache TTL for baremetal setups",
Hidden: true,
Value: 10 * time.Minute,
EnvVar: "MINIO_DNS_CACHE_TTL",
},
cli.StringSliceFlag{
Name: "ftp",
Usage: "enable and configure an FTP(Secure) server",