From 2318a8a82bc4eb150405c433378e24f5c872f9da Mon Sep 17 00:00:00 2001 From: Lenin Alevski Date: Mon, 6 Apr 2020 15:22:39 -0700 Subject: [PATCH] disabling default tls redirect (#38) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: César Nieto --- restapi/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restapi/config.go b/restapi/config.go index aa851c382..2d510a8d6 100644 --- a/restapi/config.go +++ b/restapi/config.go @@ -25,9 +25,9 @@ import ( ) var Port = "9090" -var TLSPort = "9443" var Hostname = "localhost" var TLSHostname = "localhost" +var TLSPort = "9443" func getAccessKey() string { return env.Get(McsAccessKey, "minioadmin") @@ -147,7 +147,7 @@ func getSecureHostsProxyHeaders() []string { // If SSLRedirect is set to true, then only allow HTTPS requests. Default is true. func getSSLRedirect() bool { - return strings.ToLower(env.Get(McsSecureSSLRedirect, "on")) == "on" + return strings.ToLower(env.Get(McsSecureSSLRedirect, "off")) == "on" } // SSLHost is the host name that is used to redirect HTTP requests to HTTPS. Default is "", which indicates to use the same host.