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:
@@ -87,7 +87,7 @@ func serveProxy(responseWriter http.ResponseWriter, req *http.Request) {
|
|||||||
|
|
||||||
tenantSchema := "http"
|
tenantSchema := "http"
|
||||||
tenantPort := fmt.Sprintf(":%d", v2.ConsolePort)
|
tenantPort := fmt.Sprintf(":%d", v2.ConsolePort)
|
||||||
if tenant.AutoCert() {
|
if tenant.AutoCert() || tenant.ExternalCert() {
|
||||||
tenantSchema = "https"
|
tenantSchema = "https"
|
||||||
tenantPort = fmt.Sprintf(":%d", v2.ConsoleTLSPort)
|
tenantPort = fmt.Sprintf(":%d", v2.ConsoleTLSPort)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user