implement a flag to specify custom crossdomain.xml (#19262)

fixes #16909
This commit is contained in:
Harshavardhana
2024-03-17 23:42:40 -07:00
committed by GitHub
parent a0de56abb6
commit f168ef9989
4 changed files with 22 additions and 3 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
// Copyright (c) 2015-2023 MinIO, Inc.
// Copyright (c) 2015-2024 MinIO, Inc.
//
// This file is part of MinIO Object Storage stack
//
@@ -161,6 +161,12 @@ var ServerFlags = []cli.Flag{
Name: "sftp",
Usage: "enable and configure an SFTP server",
},
cli.StringFlag{
Name: "crossdomain-xml",
Usage: "provide a custom crossdomain-xml configuration to report at http://endpoint/crossdomain.xml",
Hidden: true,
EnvVar: "MINIO_CROSSDOMAIN_XML",
},
}
var gatewayCmd = cli.Command{