From e206e454277386eb1e8d39e94eed51802d630d7d Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Mon, 3 Mar 2025 08:04:29 -0600 Subject: [PATCH] add support for apex and subdomain --- helm-chart/templates/_helpers.tpl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/helm-chart/templates/_helpers.tpl b/helm-chart/templates/_helpers.tpl index d57f4b6..3f878b6 100644 --- a/helm-chart/templates/_helpers.tpl +++ b/helm-chart/templates/_helpers.tpl @@ -4,9 +4,14 @@ Generate the content for the NGINX configuration. {{- define "nginx.configmap.content" -}} {{- range .Values.sites }} server { - listen 80; + {{ if .apex }} + server_name {{ .host }}; + {{ else if .subdomain }} + server_name {{ .subdomain }}.{{ .host }}; + {{ else }} server_name {{ .name }}.{{ .host }}; - + {{ end }} + listen 80; gzip on; gzip_disable "msie6"; gzip_vary on;