feat(dify): dify配置优化
这个提交包含在:
+11
-13
@@ -22,7 +22,6 @@ spec:
|
||||
tag: "0.2.12"
|
||||
pluginDaemon:
|
||||
tag: "0.1.1-local"
|
||||
|
||||
api:
|
||||
persistence:
|
||||
persistentVolumeClaim:
|
||||
@@ -32,18 +31,10 @@ spec:
|
||||
extraEnv:
|
||||
- name: LANG
|
||||
value: "C.UTF-8"
|
||||
- name: VECTOR_STORE
|
||||
value: "pgvector"
|
||||
- name: PGVECTOR_HOST
|
||||
value: "cnpg17-cluster-hk-rw.infra-data"
|
||||
- name: PGVECTOR_PORT
|
||||
value: "5432"
|
||||
- name: PGVECTOR_DATABASE
|
||||
value: "dify"
|
||||
- name: DB_USERNAME
|
||||
value: "app"
|
||||
- name: DB_PASSWORD
|
||||
value: "QrmOnigueiiKWDxS5HqS8h765fUZoV1fj2WFkHpqZOPnKAGcM9paiXC1VzGUA3PD"
|
||||
- name: UPLOAD_FILE_SIZE_LIMIT
|
||||
value: "1024"
|
||||
- name: UPLOAD_FILE_BATCH_LIMIT
|
||||
value: "10"
|
||||
pluginDaemon:
|
||||
persistence:
|
||||
persistentVolumeClaim:
|
||||
@@ -74,3 +65,10 @@ spec:
|
||||
username: ""
|
||||
password: ribiPwYQNU6GWxCYR0Nj
|
||||
useSSL: false
|
||||
externalPgvector:
|
||||
enabled: true
|
||||
username: app
|
||||
password: QrmOnigueiiKWDxS5HqS8h765fUZoV1fj2WFkHpqZOPnKAGcM9paiXC1VzGUA3PD
|
||||
address: cnpg17-cluster-hk-rw.infra-data
|
||||
port: 5432
|
||||
dbName: dify
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: dify-static
|
||||
namespace: apps
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
nginx.ingress.kubernetes.io/proxy-buffering: "on"
|
||||
nginx.ingress.kubernetes.io/configuration-snippet: |
|
||||
proxy_cache cache;
|
||||
proxy_cache_valid 200 302 7d;
|
||||
proxy_cache_valid 404 10m;
|
||||
proxy_cache_valid any 1h;
|
||||
proxy_cache_use_stale error timeout updating http_404 http_500 http_502 http_503 http_504;
|
||||
proxy_cache_bypass $http_x_purge;
|
||||
proxy_ignore_headers Cache-Control;
|
||||
add_header X-Cache-Status $upstream_cache_status;
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: dify.dev.cm
|
||||
http:
|
||||
paths:
|
||||
- path: /(.*\.(css|js|png|jpg|jpeg|gif|svg|webp|ico|woff|woff2|ttf|eot)|avatars/[^/]+)$
|
||||
pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: dify-web
|
||||
port:
|
||||
number: 3000
|
||||
|
||||
@@ -3,7 +3,6 @@ kind: Ingress
|
||||
metadata:
|
||||
name: dify-web
|
||||
namespace: apps
|
||||
annotations:
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
@@ -26,6 +25,7 @@ metadata:
|
||||
namespace: apps
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "1024m"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
@@ -7,7 +7,7 @@ spec:
|
||||
repo: https://emberstack.github.io/helm-charts
|
||||
chart: reflector
|
||||
targetNamespace: infra-devops
|
||||
version: 9.1.5
|
||||
version: 9.1.7
|
||||
valuesContent: |-
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
|
||||
在新议题中引用
屏蔽一个用户