Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e165ea0f8b |
3 changed files with 6 additions and 23 deletions
|
|
@ -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
|
2025-02-19
|
||||||
|
|
||||||
|
|
@ -11,8 +9,6 @@ _v2 release: Improved NGINX configuration for performance and compatibility_
|
||||||
- Ensured proper trailing slash redirections.
|
- Ensured proper trailing slash redirections.
|
||||||
- Updated proxy settings for better MinIO integration.
|
- Updated proxy settings for better MinIO integration.
|
||||||
|
|
||||||
## 1.0.0
|
## v1 release: Initial release
|
||||||
|
|
||||||
_v1 release: Initial release_
|
|
||||||
|
|
||||||
2025-02-09
|
2025-02-09
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,9 @@ Generate the content for the NGINX configuration.
|
||||||
{{- define "nginx.configmap.content" -}}
|
{{- define "nginx.configmap.content" -}}
|
||||||
{{- range .Values.sites }}
|
{{- range .Values.sites }}
|
||||||
server {
|
server {
|
||||||
{{ if .apex }}
|
|
||||||
server_name {{ .host }};
|
|
||||||
{{ else if .subdomain }}
|
|
||||||
server_name {{ .subdomain }}.{{ .host }};
|
|
||||||
{{ else }}
|
|
||||||
server_name {{ .name }}.{{ .host }};
|
|
||||||
{{ end }}
|
|
||||||
listen 80;
|
listen 80;
|
||||||
|
server_name {{ .name }}.{{ .host }};
|
||||||
|
|
||||||
gzip on;
|
gzip on;
|
||||||
gzip_disable "msie6";
|
gzip_disable "msie6";
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
|
|
@ -54,9 +49,7 @@ server {
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
error_page 404 {{ .errorPage }};
|
error_page 404 {{ .errorPage }};
|
||||||
|
|
||||||
proxy_hide_header Cache-Control;
|
add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}" always;
|
||||||
add_header Cache-Control "public, max-age={{ $.Values.maxAge }}, stale-while-revalidate={{ $.Values.staleWhileRevalidate }}, stale-if-error={{ $.Values.staleIfError }}" always;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,7 @@ 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: /
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue