Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions restapi/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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.
Expand Down