Files
truecharts/charts/stable/inventree/templates/_nginx.tpl
T
Stavros KoisandGitHub ba1c80fe36 fix(inventree): fix errors and restructure chart to be readable (#3594)
* fix(inventree): fix errors

* update runas of init

* no rofs

* run init as root

* fix typo

* do some cleanup

* lets test

* more cleanup

* nomount

* rename

* ughhh

* hmm

* encode

* dont cd

* root

* update UI

* change dir

* back to default redis user

* cleanup
2022-08-28 12:50:32 +03:00

21 lines
734 B
Smarty

{{/* Define the nginx container */}}
{{- define "inventree.nginx" -}}
image: {{ .Values.nginxImage.repository }}:{{ .Values.nginxImage.tag }}
imagePullPolicy: '{{ .Values.nginxImage.pullPolicy }}'
securityContext:
runAsUser: {{ .Values.podSecurityContext.runAsUser }}
runAsGroup: {{ .Values.podSecurityContext.runAsGroup }}
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem }}
runAsNonRoot: {{ .Values.securityContext.runAsNonRoot }}
ports:
- containerPort: {{ .Values.service.main.ports.main.port }}
name: main
volumeMounts:
- name: inventree-nginx
mountPath: "/etc/nginx/conf.d/default.conf"
subPath: nginx.conf
readOnly: true
- name: data
mountPath: "/var/www"
{{- end -}}