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
|
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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -48,8 +53,10 @@ server {
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
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 }}
|
||||||
|
|
|
||||||
|
|
@ -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: /
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue