Skip to content

Commit

Permalink
Default TLS redirect if Console runs with HTTPS (#580)
Browse files Browse the repository at this point in the history
TLS redirect default behavior is `TRUE` only if Console is running with
HTTPS
  • Loading branch information
Alevsk committed Jan 27, 2021
1 parent 365778e commit 3b1449c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restapi/configure_console.go
Expand Up @@ -189,7 +189,7 @@ func setupGlobalMiddleware(handler http.Handler) http.Handler {
AllowedHosts: getSecureAllowedHosts(),
AllowedHostsAreRegex: getSecureAllowedHostsAreRegex(),
HostsProxyHeaders: getSecureHostsProxyHeaders(),
SSLRedirect: GetTLSRedirect() == "on",
SSLRedirect: GetTLSRedirect() == "on" && len(GlobalPublicCerts) > 0,
SSLHost: getSecureTLSHost(),
STSSeconds: getSecureSTSSeconds(),
STSIncludeSubdomains: getSecureSTSIncludeSubdomains(),
Expand Down

0 comments on commit 3b1449c

Please sign in to comment.