fix: Decouple BASE_URL from Ingress host (#498)

Closes #496
This commit is contained in:
RocketProto
2023-08-27 06:56:45 +09:30
committed by GitHub
parent 5317950b5c
commit 7d28abc7e6
3 changed files with 9 additions and 2 deletions

View File

@@ -64,7 +64,9 @@ spec:
name: planka-postgresql-svcbind-custom-user
key: uri
- name: BASE_URL
{{- if .Values.ingress.enabled }}
{{- if .Values.baseUrl }}
value: {{ .Values.baseUrl }}
{{- else if .Values.ingress.enabled }}
value: {{ printf "https://%s" (first .Values.ingress.hosts).host }}
{{- else }}
value: http://localhost:3000