fix: Decouple BASE_URL from Ingress host (#498)

Closes #496
This commit is contained in:
RocketProto
2023-08-27 02:26:45 +05:00
committed by GitHub
parent d91b047be4
commit beaa471aca
3 changed files with 9 additions and 2 deletions
+3 -1
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