Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

fix: keycloak prod url #187

Merged
merged 1 commit into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .kube-workflow/prod/values.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .kube-workflow/templates/realm.configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down