From 1e222ef01e22756a3d19f7d52164969028f8507e Mon Sep 17 00:00:00 2001 From: devthejo Date: Mon, 16 May 2022 13:51:50 +0200 Subject: [PATCH] fix: keycloak prod url --- .kube-workflow/prod/values.yaml | 7 +++++-- .kube-workflow/templates/realm.configmap.yaml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.kube-workflow/prod/values.yaml b/.kube-workflow/prod/values.yaml index adf94267..f161cf0f 100644 --- a/.kube-workflow/prod/values.yaml +++ b/.kube-workflow/prod/values.yaml @@ -1,5 +1,8 @@ +global: + appHost: monpsy.sante.gouv.fr + app: - host: monpsy.sante.gouv.fr + host: "{{ .Values.global.appHost }}" redirectFrom: - www.monpsy.sante.gouv.fr replicas: 2 @@ -12,7 +15,7 @@ app: memory: 256Mi env: - name: NEXTAUTH_URL - value: "https://monpsy.sante.gouv.fr" + value: "https://{{ .Values.global.appHost }}" - name: KEYCLOAK_ISSUER value: "https://keycloak-{{ .Values.global.host }}/auth/realms/mon-psy-sante" - name: KEYCLOAK_ID diff --git a/.kube-workflow/templates/realm.configmap.yaml b/.kube-workflow/templates/realm.configmap.yaml index a94e98f6..fa705f1a 100644 --- a/.kube-workflow/templates/realm.configmap.yaml +++ b/.kube-workflow/templates/realm.configmap.yaml @@ -674,7 +674,7 @@ data: "clientAuthenticatorType": "client-secret", "secret": "{{`{{ getenv "KEYCLOAK_SECRET" }}`}}", "redirectUris": [ - "https://{{ .Values.global.host }}/*" + "https://{{ or .Values.global.appHost .Values.global.host }}/*" ], "notBefore": 0, "bearerOnly": false,