Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07a1d9a31d | ||
|
|
62480a439f | ||
|
|
19af384c4f | ||
|
|
0948358703 | ||
|
|
89ad40bb88 | ||
|
|
856070907e | ||
|
|
e206e45427 | ||
|
|
8075bab534 |
3 changed files with 23 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
@ -9,6 +11,8 @@
|
|||
- Ensured proper trailing slash redirections.
|
||||
- Updated proxy settings for better MinIO integration.
|
||||
|
||||
## v1 release: Initial release
|
||||
## 1.0.0
|
||||
|
||||
_v1 release: Initial release_
|
||||
|
||||
2025-02-09
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -48,8 +53,10 @@ server {
|
|||
proxy_ssl_server_name on;
|
||||
proxy_ssl_verify off;
|
||||
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 }}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,13 @@ 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