Fix on port 443 do not add port to url

[ZITADOPER-1]
This commit is contained in:
Haim Kortovich
2024-05-13 14:05:33 -05:00
parent 2a94620b96
commit 02ff904c6a
4 changed files with 17 additions and 2 deletions

View File

@@ -55,6 +55,9 @@ func GetIssuer(zitadel *zitadelv1alpha1.ZitadelCluster) string {
if zitadel.Spec.ExternalSecure {
scheme = "https"
}
if zitadel.Spec.ExternalPort == 443 {
return fmt.Sprintf("%s://%s", scheme, zitadel.Spec.Host)
}
return fmt.Sprintf("%s://%s:%d", scheme, zitadel.Spec.Host, zitadel.Spec.ExternalPort)
}