29 lines
1.2 KiB
YAML
29 lines
1.2 KiB
YAML
{{- $nameSpace := include "lowcoder.namespace" . -}}
|
|
{{- $name := include "lowcoder.fullname" . -}}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ include "lowcoder.fullname" . }}-frontend
|
|
labels:
|
|
{{- include "lowcoder.labels" . | nindent 4 }}
|
|
{{- with .Values.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
data:
|
|
LOWCODER_PUID: {{ .Values.global.config.userId | default "9001" | quote }}
|
|
LOWCODER_PGID: {{ .Values.global.config.groupId | default "9001" | quote }}
|
|
{{- if .Values.global.config.apiServiceUrl }}
|
|
LOWCODER_API_SERVICE_URL: {{ .Values.global.config.apiServiceUrl | trimSuffix "/" | quote }}
|
|
{{- else }}
|
|
LOWCODER_API_SERVICE_URL: "http://{{ $name }}-api-service:{{ .Values.apiService.service.port }}"
|
|
{{- end }}
|
|
{{- if .Values.global.config.nodeServiceUrl }}
|
|
LOWCODER_NODE_SERVICE_URL: {{ .Values.global.config.nodeServiceUrl | trimSuffix "/" | quote }}
|
|
{{- else }}
|
|
LOWCODER_NODE_SERVICE_URL: "http://{{ $name }}-node-service:{{ .Values.nodeService.service.port }}"
|
|
{{- end }}
|
|
LOWCODER_MAX_REQUEST_SIZE: {{ .Values.global.config.maxRequestSize | default "20m" | quote }}
|
|
LOWCODER_MAX_QUERY_TIMEOUT: {{ .Values.global.config.maxQueryTimeout | default "120" | quote }}
|
|
|