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
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -54,9 +49,7 @@ server {
|
|||
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 }}
|
||||
|
|
|
|||
|
|
@ -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: /
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue