mirror of
https://github.com/minio/minio.git
synced 2025-11-20 18:06:10 -05:00
flags: Remove anonymous, ratelimit, json and web-address flags.
- Web address now uses the port + 1 from the API address port directly. - Remove ratelimiting, ratelimiting will be achieved if necessary through iptables. - Remove json flag, not needed anymore. - Remove anonymous flag, server will be no more anonymous for play.minio.io we will use demo credentials.
This commit is contained in:
25
flags.go
25
flags.go
@@ -34,32 +34,12 @@ var (
|
||||
Usage: "ADDRESS:PORT for cloud storage access.",
|
||||
}
|
||||
|
||||
webAddressFlag = cli.StringFlag{
|
||||
Name: "web-address",
|
||||
Value: ":9001",
|
||||
Hide: true,
|
||||
Usage: "WEBADDRESS:PORT for cloud storage access.",
|
||||
}
|
||||
|
||||
accessLogFlag = cli.BoolFlag{
|
||||
Name: "enable-accesslog",
|
||||
Hide: true,
|
||||
Usage: "Enable access logs for all incoming HTTP request.",
|
||||
}
|
||||
|
||||
rateLimitFlag = cli.IntFlag{
|
||||
Name: "ratelimit",
|
||||
Hide: true,
|
||||
Value: 0,
|
||||
Usage: "Limit for total concurrent requests: [DEFAULT: 0].",
|
||||
}
|
||||
|
||||
anonymousFlag = cli.BoolFlag{
|
||||
Name: "anonymous",
|
||||
Hide: true,
|
||||
Usage: "Make server run in anonymous mode where all client connections are accepted.",
|
||||
}
|
||||
|
||||
certFlag = cli.StringFlag{
|
||||
Name: "cert",
|
||||
Usage: "Provide your domain certificate.",
|
||||
@@ -69,11 +49,6 @@ var (
|
||||
Name: "key",
|
||||
Usage: "Provide your domain private key.",
|
||||
}
|
||||
|
||||
jsonFlag = cli.BoolFlag{
|
||||
Name: "json",
|
||||
Usage: "Enable json formatted output.",
|
||||
}
|
||||
)
|
||||
|
||||
// registerFlag registers a cli flag
|
||||
|
||||
Reference in New Issue
Block a user