- Bump image version for `chatgpt-web-midjourney-proxy` from 2.22.7 to 2.23.8. - Add annotations for NGINX ingress to configure proxy body size, read timeout, and send timeout. These changes enhance the deployment of the application by ensuring that it uses the latest image version and improves the handling of larger requests and longer processing time through appropriate NGINX configuration.
57 lines
3.5 KiB
YAML
57 lines
3.5 KiB
YAML
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: app
|
|
namespace: imagehost
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "dnspod-cluster-issuer"
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
nginx.ingress.kubernetes.io/configuration-snippet: |
|
|
location = /Avatar.jpg {
|
|
return 301 https://image.frytea.com/i/Avatar.jpg$is_args$args;
|
|
}
|
|
#nginx.ingress.kubernetes.io/rewrite-rule: "if ($uri ~ ^/(Avatar\\.jpg)$) { return 301 $scheme://$host/i/$1; }"
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- image.frytea.com
|
|
- imagehost-cdn.frytea.com
|
|
- cdn-imagehost.frytea.com
|
|
secretName: image-frytea-com-tls
|
|
rules:
|
|
- host: image.frytea.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: app
|
|
port:
|
|
name: web
|
|
- host: imagehost-cdn.frytea.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: app
|
|
port:
|
|
name: web
|
|
- host: cdn-imagehost.frytea.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: app
|
|
port:
|
|
name: web
|
|
|