Compare commits

..

8 commits
v2.0.0 ... main

Author SHA1 Message Date
Waylon S. Walker
07a1d9a31d revert 2025-05-17 09:16:07 -05:00
Waylon S. Walker
62480a439f use more_clear_headers/more_set_headers 2025-05-17 09:13:36 -05:00
Waylon S. Walker
19af384c4f clear cache control header here 2025-05-17 09:08:47 -05:00
Waylon S. Walker
0948358703 overwrite minio cache-control 2025-05-16 20:57:07 -05:00
Waylon S. Walker
89ad40bb88 add stale-if-error 2025-05-16 20:51:58 -05:00
Waylon S. Walker
856070907e update ingress to match 2025-03-03 08:11:03 -06:00
Waylon S. Walker
e206e45427 add support for apex and subdomain 2025-03-03 08:04:29 -06:00
Waylon S. Walker
8075bab534 v2 release: Improved NGINX configuration for performance and compatibility
- Enhanced proxy buffering to optimize request handling.
- Improved gzip compression settings.
- Fixed rewrite rules to properly handle static content.
- Added resolver for better DNS resolution.
- Ensured proper trailing slash redirections.
- Updated proxy settings for better MinIO integration.
2025-02-19 10:19:48 -06:00
3 changed files with 23 additions and 6 deletions

View file

@ -1,4 +1,6 @@
## v2 release: Improved NGINX configuration for performance and compatibility ## 2.0.0
_v2 release: Improved NGINX configuration for performance and compatibility_
2025-02-19 2025-02-19
@ -9,6 +11,8 @@
- Ensured proper trailing slash redirections. - Ensured proper trailing slash redirections.
- Updated proxy settings for better MinIO integration. - Updated proxy settings for better MinIO integration.
## v1 release: Initial release ## 1.0.0
_v1 release: Initial release_
2025-02-09 2025-02-09

View file

@ -4,9 +4,14 @@ Generate the content for the NGINX configuration.
{{- define "nginx.configmap.content" -}} {{- define "nginx.configmap.content" -}}
{{- range .Values.sites }} {{- range .Values.sites }}
server { server {
listen 80; {{ if .apex }}
server_name {{ .host }};
{{ else if .subdomain }}
server_name {{ .subdomain }}.{{ .host }};
{{ else }}
server_name {{ .name }}.{{ .host }}; server_name {{ .name }}.{{ .host }};
{{ end }}
listen 80;
gzip on; gzip on;
gzip_disable "msie6"; gzip_disable "msie6";
gzip_vary on; gzip_vary on;
@ -49,7 +54,9 @@ server {
proxy_ssl_verify off; proxy_ssl_verify off;
error_page 404 {{ .errorPage }}; error_page 404 {{ .errorPage }};
add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}" always; 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;
} }
} }
{{- end }} {{- end }}

View file

@ -8,7 +8,13 @@ metadata:
spec: spec:
rules: rules:
{{- range .Values.sites }} {{- range .Values.sites }}
{{- if .apex }}
- host: {{ .host }}
{{- else if .subdomain }}
- host: {{ .subdomain }}.{{ .host }}
{{- else }}
- host: {{ .name }}.{{ .host }} - host: {{ .name }}.{{ .host }}
{{ end }}
http: http:
paths: paths:
- path: / - path: /