forked from jenkins-infra/helm-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx-configmap.yaml
More file actions
28 lines (28 loc) · 838 Bytes
/
nginx-configmap.yaml
File metadata and controls
28 lines (28 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "nginx-website.fullname" . }}
labels: {{ include "nginx-website.labels" . | nindent 4 }}
data:
default.conf: |
# default.conf
{{ if .Values.nginx.httpDirectives }}
{{ .Values.nginx.httpDirectives | indent 4 }}
{{ end }}
server {
listen {{ .Values.service.port }};
server_name {{ .Values.nginx.serverName }};
server_tokens off;
{{- if .Values.nginx.overrideLocations }}
{{ .Values.nginx.overrideLocations | indent 6 }}
{{- else }}
location / {
root {{ .Values.nginx.slashLocation.root }};
index {{ .Values.nginx.slashLocation.index }};
autoindex {{ .Values.nginx.slashLocation.autoindex }};
{{- with .Values.nginx.slashLocation.tryFiles }}
try_files {{ . }};
{{- end }}
}
{{- end }}
}