Skip to content

Commit 9da2b08

Browse files
committed
Fix resolution of domains. still have an issue with local certs not being trusted for minikube deployments
1 parent 62c2100 commit 9da2b08

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

ops-scripts/local/deploy-helm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source ${SCRIPT_DIR}/base.sh
66
source ${SCRIPT_DIR}/../../.local.env
77

88
TENANT=dev
9-
ENABLE_TLS=false
9+
ENABLE_TLS=true
1010
INSTALL_CERT_MANAGER=false
1111

1212
# Parse command line arguments
@@ -118,7 +118,7 @@ if [[ "$ENABLE_TLS" == "true" ]]; then
118118
KEYCLOAK_SUBDOMAIN="keycloak-${TENANT}.local"
119119
KEYCLOAK_HOSTNAME="${KEYCLOAK_SUBDOMAIN}"
120120
KEYCLOAK_DOMAIN="https://${KEYCLOAK_SUBDOMAIN}"
121-
KEYCLOAK_INTERNAL_DOMAIN="http://sentrius-keycloak:8081" # Internal cluster communication
121+
KEYCLOAK_INTERNAL_DOMAIN="https://${KEYCLOAK_SUBDOMAIN}" # Internal cluster communication
122122
SENTRIUS_DOMAIN="https://${SUBDOMAIN}"
123123
CERTIFICATES_ENABLED="true"
124124
INGRESS_TLS_ENABLED="true"

sentrius-chart/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ ingress:
219219
alb.ingress.kubernetes.io/ssl-redirect: "443"
220220
local: # Local environment annotations (e.g., Minikube)
221221
kubernetes.io/ingress.class: nginx
222+
nginx.ingress.kubernetes.io/ssl-redirect: "{{ .Values.certificates.enabled | quote }}"
223+
nginx.ingress.kubernetes.io/force-ssl-redirect: "{{ .Values.certificates.enabled | quote }}"
224+
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
222225

223226

224227

0 commit comments

Comments
 (0)