deployment/helm/guide-charts/templates/cm/nginx-conf.yaml (30 lines of code) (raw):

apiVersion: v1 kind: ConfigMap metadata: name: {{.Release.Name}}-nginx-conf-cm labels: env: {{.Values.env}} data: default.conf: | server { listen {{.Values.containerPort}}; listen [::]:{{.Values.containerPort}}; server_name localhost; #access_log /var/log/nginx/host.access.log main; location ~* \.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|svg|woff2)$ { root /usr/share/nginx/html; index index.html index.htm; expires 30d; add_header Cache-Control "public, no-transform"; } location / { root /usr/share/nginx/html; index index.html index.htm; } error_page 404 /guide/404.html; location = /guide/404.html { root /usr/share/nginx/html; internal; } absolute_redirect off; include /etc/nginx/extra/redirect.conf; }