2021-06-19 17:58:09 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: {{ .Release.Name }}-nginx-config
|
|
|
|
data:
|
|
|
|
{{ (.Files.Glob "nginx/*.conf").AsConfig | indent 2 }}
|
|
|
|
default.conf: |
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
listen [::]:443 ssl;
|
|
|
|
|
2021-06-19 18:11:19 +00:00
|
|
|
server_name {{ .Release.Name }}-{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }};
|
2021-06-19 17:58:09 +00:00
|
|
|
|
2021-06-19 18:11:19 +00:00
|
|
|
ssl_certificate /etc/letsencrypt/live/{{ .Release.Name }}-{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/{{ .Release.Name }}-{{ .Values.serviceName }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}/privkey.pem;
|
2021-06-19 17:58:09 +00:00
|
|
|
|
|
|
|
client_max_body_size 256m;
|
|
|
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
|
|
|
autoindex on;
|
|
|
|
}
|