rancher-partner-charts/charts/jfrog/artifactory-ha/107.90.5/templates/nginx-conf.yaml

19 lines
557 B
YAML

{{- if and (not .Values.nginx.customConfigMap) .Values.nginx.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "artifactory-ha.fullname" . }}-nginx-conf
labels:
app: {{ template "artifactory-ha.name" . }}
chart: {{ template "artifactory-ha.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
data:
nginx.conf: |
{{- if .Values.nginx.mainConf }}
{{ tpl .Values.nginx.mainConf . | indent 4 }}
{{- else }}
{{ tpl ( .Files.Get "files/nginx-main-conf.yaml" ) . | indent 4 }}
{{- end }}
{{- end }}