feat: add annotations for NGINX ingress configuration in production values
Signed-off-by: zhenyus <zhenyus@mathmast.com>
This commit is contained in:
parent
03bb8c3cb3
commit
d2caeeec51
@ -14,6 +14,9 @@ metadata:
|
||||
app.kubernetes.io/name: {{ $ingress.name | quote }}
|
||||
app.kubernetes.io/managed-by: {{ $releaseIngress }}
|
||||
app.kubernetes.io/instance: {{ $releaseName }}
|
||||
{{- if $ingress.annotations }}
|
||||
{{- toYaml $ingress.annotations | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if $ingress.class }}
|
||||
ingressClassName: {{ $ingress.class }}
|
||||
|
||||
@ -45,6 +45,20 @@ frontend:
|
||||
name: mathmast-dot-com
|
||||
kind: ClusterIssuer
|
||||
name: freeleaps.mathmast.com-cert
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
|
||||
nginx.ingress.kubernetes.io/server-snippets: |
|
||||
location / {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
configs:
|
||||
tz: UTC
|
||||
frontendPort: 8080
|
||||
|
||||
Loading…
Reference in New Issue
Block a user