fix: Check if console is deployed with external certs for metrics proxy (#999)

Signed-off-by: Lenin Alevski <alevsk.8772@gmail.com>
This commit is contained in:
Lenin Alevski
2021-09-01 13:40:16 -07:00
committed by GitHub
parent ddd4ab54a7
commit 96e9bce331

View File

@@ -87,7 +87,7 @@ func serveProxy(responseWriter http.ResponseWriter, req *http.Request) {
tenantSchema := "http"
tenantPort := fmt.Sprintf(":%d", v2.ConsolePort)
if tenant.AutoCert() {
if tenant.AutoCert() || tenant.ExternalCert() {
tenantSchema = "https"
tenantPort = fmt.Sprintf(":%d", v2.ConsoleTLSPort)
}