Skip to content

Commit

Permalink
Merge pull request #22 from lalithkota/main
Browse files Browse the repository at this point in the history
Social Registry: mail hostname settings
  • Loading branch information
pjoshi751 authored May 28, 2024
2 parents 4346353 + 3ed7780 commit 7d9ee4b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 20 deletions.
2 changes: 1 addition & 1 deletion charts/odk-central/charts/odk-central-backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ envVars:
PYXFORM_PORT: "80"

EMAIL_FROM: 'no-reply@{{ .Values.global.hostname }}'
EMAIL_HOST: '{{ .Release.Name }}-mail'
EMAIL_HOST: '{{ .Release.Name }}-odk-central-mail'
EMAIL_PORT: "25"
EMAIL_SECURE: "false"
EMAIL_IGNORE_TLS: "true"
Expand Down
34 changes: 18 additions & 16 deletions charts/openg2p-social-registry/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,21 @@ questions:
type: string
label: Minio Console Hostname
group: Minio Settings
- variable: minio.extraEnvVars[0].value
default: http://keycloak.sandbox.openg2p.net/realms/master/.well-known/openid-configuration
description: OIDC Well know config URL for Minio Console login
type: string
label: OIDC Well-known Config URL
group: Minio Settings
- variable: minio.extraEnvVars[1].value
description: OIDC Client ID for Minio Console login
type: string
label: OIDC Client ID
group: Minio Settings
- variable: minio.extraEnvVars[2].value
description: OIDC Client Secret for Minio Console login
type: string
label: OIDC Client Secret
group: Minio Settings
# The following configs will not work, because of Array type
# These will have to be edited from yaml.
# - variable: minio.extraEnvVars[0].value
# default: http://keycloak.sandbox.openg2p.net/realms/master/.well-known/openid-configuration
# description: OIDC Well know config URL for Minio Console login
# type: string
# label: OIDC Well-known Config URL
# group: Minio Settings
# - variable: minio.extraEnvVars[1].value
# description: OIDC Client ID for Minio Console login
# type: string
# label: OIDC Client ID
# group: Minio Settings
# - variable: minio.extraEnvVars[2].value
# description: OIDC Client Secret for Minio Console login
# type: string
# label: OIDC Client Secret
# group: Minio Settings
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: {{ include "socialRegistry.fullname" . }}-minio
name: {{ .Release.Name }}-minio
labels:
{{- include "socialRegistry.labels" . | nindent 4 }}
spec:
Expand All @@ -20,7 +20,7 @@ spec:
x-forwarded-proto: https
route:
- destination:
host: {{ include "socialRegistry.fullname" . }}-minio
host: {{ .Release.Name }}-minio
port:
number: 9001
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
x-forwarded-proto: https
route:
- destination:
host: {{ include "socialRegistry.fullname" . }}-odoo
host: {{ .Release.Name . }}-odoo
port:
number: {{ .Values.odoo.service.port }}
{{- end }}
Expand Down
8 changes: 8 additions & 0 deletions charts/openg2p-social-registry/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,15 @@ mail:

odk-central:
enabled: true
odk-central-mail:
enabled: false
envVars:
EMAIL_HOST: '{{ .Release.Name }}-mail'
odk-central-backend:
envVars:
OIDC_ISSUER_URL: ""
OIDC_CLIENT_ID: ""
OIDC_CLIENT_SECRET: ""
postgresql:
nameOverride: odk-central-postgresql

Expand Down

0 comments on commit 7d9ee4b

Please sign in to comment.