mirror of
https://github.com/minio/minio.git
synced 2025-05-21 17:43:48 -04:00
fix: https healthcheck mint test (#10622)
This commit is contained in:
parent
f1418a50f0
commit
9dda9fb903
@ -199,9 +199,10 @@ func testPrometheusEndpoint(endpoint string) {
|
|||||||
func main() {
|
func main() {
|
||||||
endpoint := os.Getenv("SERVER_ENDPOINT")
|
endpoint := os.Getenv("SERVER_ENDPOINT")
|
||||||
secure := os.Getenv("ENABLE_HTTPS")
|
secure := os.Getenv("ENABLE_HTTPS")
|
||||||
endpoint = "http://" + endpoint
|
|
||||||
if secure == "1" {
|
if secure == "1" {
|
||||||
endpoint = "https://" + endpoint
|
endpoint = "https://" + endpoint
|
||||||
|
} else {
|
||||||
|
endpoint = "http://" + endpoint
|
||||||
}
|
}
|
||||||
|
|
||||||
// Output to stdout instead of the default stderr
|
// Output to stdout instead of the default stderr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user