ungleich-k8s/apps/nginx-certbot-helm/templates/configmap.yaml

23 lines
791 B
YAML
Raw Normal View History

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 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;
client_max_body_size 256m;
root /usr/share/nginx/html;
autoindex on;
}