Skip to content

Commit

Permalink
Support explicit portal host
Browse files Browse the repository at this point in the history
  • Loading branch information
louischan-oursky committed Jul 13, 2023
1 parent aeb2407 commit cd0b3a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions authgear/templates/portal-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{- if .Values.authgear.ingress.enabled }}
{{ $portalHost := printf "portal.%s" .Values.authgear.baseHost }}
{{ if .Values.authgear.portalServer.host }}
{{ $portalHost = .Values.authgear.portalServer.host }}
{{ end }}
{{ $portalSecretName := include "authgear.namePortal" . }}
{{ if .Values.authgear.tls.portal.secretName }}
{{ $portalSecretName = .Values.authgear.tls.portal.secretName }}
Expand All @@ -15,9 +19,9 @@ spec:
tls:
- secretName: {{ $portalSecretName | quote }}
hosts:
- {{ printf "portal.%s" .Values.authgear.baseHost | quote }}
- {{ $portalHost | quote }}
rules:
- host: {{ printf "portal.%s" .Values.authgear.baseHost | quote }}
- host: {{ $portalHost | quote }}
http:
paths:
- path: /
Expand All @@ -38,7 +42,7 @@ metadata:
spec:
secretName: {{ $portalSecretName | quote }}
dnsNames:
- {{ printf "portal.%s" .Values.authgear.baseHost | quote }}
- {{ $portalHost | quote }}
issuerRef:
name: {{ .Values.authgear.certManager.issuer.http01.name | quote }}
kind: {{ .Values.authgear.certManager.issuer.http01.kind | quote }}
Expand Down
2 changes: 2 additions & 0 deletions authgear/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ authgear:
image: __replace_me__
replicas: 1

host: ""

email:
sender: ""
replyTo: ""
Expand Down

0 comments on commit cd0b3a3

Please sign in to comment.