diff --git a/CHANGELOG.md b/CHANGELOG.md index 5885bd5..efd2d49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,4 @@ -## 2.0.0 - -_v2 release: Improved NGINX configuration for performance and compatibility_ +## v2 release: Improved NGINX configuration for performance and compatibility 2025-02-19 @@ -11,8 +9,6 @@ _v2 release: Improved NGINX configuration for performance and compatibility_ - Ensured proper trailing slash redirections. - Updated proxy settings for better MinIO integration. -## 1.0.0 - -_v1 release: Initial release_ +## v1 release: Initial release 2025-02-09 diff --git a/helm-chart/templates/_helpers.tpl b/helm-chart/templates/_helpers.tpl index 375c596..d57f4b6 100644 --- a/helm-chart/templates/_helpers.tpl +++ b/helm-chart/templates/_helpers.tpl @@ -4,14 +4,9 @@ Generate the content for the NGINX configuration. {{- define "nginx.configmap.content" -}} {{- range .Values.sites }} server { - {{ if .apex }} - server_name {{ .host }}; - {{ else if .subdomain }} - server_name {{ .subdomain }}.{{ .host }}; - {{ else }} - server_name {{ .name }}.{{ .host }}; - {{ end }} listen 80; + server_name {{ .name }}.{{ .host }}; + gzip on; gzip_disable "msie6"; gzip_vary on; @@ -53,10 +48,8 @@ server { proxy_ssl_server_name on; proxy_ssl_verify off; error_page 404 {{ .errorPage }}; - - proxy_hide_header Cache-Control; - add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}, stale-if-error={{ $.Values.staleIfError }}" always; - + + add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}" always; } } {{- end }} diff --git a/helm-chart/templates/ingress.yaml b/helm-chart/templates/ingress.yaml index 647aa67..d7e012e 100644 --- a/helm-chart/templates/ingress.yaml +++ b/helm-chart/templates/ingress.yaml @@ -8,13 +8,7 @@ metadata: spec: rules: {{- range .Values.sites }} - {{- if .apex }} - - host: {{ .host }} - {{- else if .subdomain }} - - host: {{ .subdomain }}.{{ .host }} - {{- else }} - host: {{ .name }}.{{ .host }} - {{ end }} http: paths: - path: /