Skip to content

Commit 2318a8a

Browse files
Alevskcesnietor
andauthored
disabling default tls redirect (#38)
Co-authored-by: César Nieto <[email protected]>
1 parent 69ed6f5 commit 2318a8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

restapi/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525
)
2626

2727
var Port = "9090"
28-
var TLSPort = "9443"
2928
var Hostname = "localhost"
3029
var TLSHostname = "localhost"
30+
var TLSPort = "9443"
3131

3232
func getAccessKey() string {
3333
return env.Get(McsAccessKey, "minioadmin")
@@ -147,7 +147,7 @@ func getSecureHostsProxyHeaders() []string {
147147

148148
// If SSLRedirect is set to true, then only allow HTTPS requests. Default is true.
149149
func getSSLRedirect() bool {
150-
return strings.ToLower(env.Get(McsSecureSSLRedirect, "on")) == "on"
150+
return strings.ToLower(env.Get(McsSecureSSLRedirect, "off")) == "on"
151151
}
152152

153153
// SSLHost is the host name that is used to redirect HTTP requests to HTTPS. Default is "", which indicates to use the same host.

0 commit comments

Comments
 (0)