add support for apex and subdomain

This commit is contained in:
Waylon S. Walker 2025-03-03 08:04:29 -06:00
parent 8075bab534
commit e206e45427

View file

@ -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;