From bbe8866ccec07598eaea14ec6c7314eb7d470fc3 Mon Sep 17 00:00:00 2001 From: wangys <3401275564@qq.com> Date: Fri, 28 Nov 2025 14:56:10 +0800 Subject: [PATCH] =?UTF-8?q?dify=E4=BF=AE=E6=94=B9=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/dify/.env | 4 +--- docker/dify/.env.example | 2 -- docker/dify/docker-compose-template.yaml | 2 +- docker/dify/docker-compose.yaml | 8 +++++--- docker/dify/version | 1 - schoolNewsServ/.bin/dify/动态知识库检索.yml | 4 ++-- 6 files changed, 9 insertions(+), 12 deletions(-) delete mode 100644 docker/dify/version diff --git a/docker/dify/.env b/docker/dify/.env index 1bcdc84..d52bacb 100644 --- a/docker/dify/.env +++ b/docker/dify/.env @@ -133,8 +133,6 @@ ACCESS_TOKEN_EXPIRE_MINUTES=60 # Refresh token expiration time in days REFRESH_TOKEN_EXPIRE_DAYS=30 -# The default number of active requests for the application, where 0 means unlimited, should be a non-negative integer. -APP_DEFAULT_ACTIVE_REQUESTS=0 # The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer. APP_MAX_ACTIVE_REQUESTS=0 APP_MAX_EXECUTION_TIME=1200 @@ -1333,8 +1331,8 @@ PLUGIN_STDIO_MAX_BUFFER_SIZE=5242880 PLUGIN_PYTHON_ENV_INIT_TIMEOUT=120 PLUGIN_MAX_EXECUTION_TIMEOUT=600 -# PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple +# PIP_MIRROR_URL= # https://github.com/langgenius/dify-plugin-daemon/blob/main/.env.example # Plugin storage type, local aws_s3 tencent_cos azure_blob aliyun_oss volcengine_tos diff --git a/docker/dify/.env.example b/docker/dify/.env.example index c9981ba..0bfdc6b 100644 --- a/docker/dify/.env.example +++ b/docker/dify/.env.example @@ -133,8 +133,6 @@ ACCESS_TOKEN_EXPIRE_MINUTES=60 # Refresh token expiration time in days REFRESH_TOKEN_EXPIRE_DAYS=30 -# The default number of active requests for the application, where 0 means unlimited, should be a non-negative integer. -APP_DEFAULT_ACTIVE_REQUESTS=0 # The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer. APP_MAX_ACTIVE_REQUESTS=0 APP_MAX_EXECUTION_TIME=1200 diff --git a/docker/dify/docker-compose-template.yaml b/docker/dify/docker-compose-template.yaml index 703a60e..975c926 100644 --- a/docker/dify/docker-compose-template.yaml +++ b/docker/dify/docker-compose-template.yaml @@ -676,7 +676,7 @@ services: milvus-standalone: container_name: milvus-standalone - image: milvusdb/milvus:v2.6.3 + image: milvusdb/milvus:v2.5.15 profiles: - milvus command: ["milvus", "run", "standalone"] diff --git a/docker/dify/docker-compose.yaml b/docker/dify/docker-compose.yaml index 3e855d7..d49c818 100644 --- a/docker/dify/docker-compose.yaml +++ b/docker/dify/docker-compose.yaml @@ -34,7 +34,6 @@ x-shared-env: &shared-api-worker-env FILES_ACCESS_TIMEOUT: ${FILES_ACCESS_TIMEOUT:-300} ACCESS_TOKEN_EXPIRE_MINUTES: ${ACCESS_TOKEN_EXPIRE_MINUTES:-60} REFRESH_TOKEN_EXPIRE_DAYS: ${REFRESH_TOKEN_EXPIRE_DAYS:-30} - APP_DEFAULT_ACTIVE_REQUESTS: ${APP_DEFAULT_ACTIVE_REQUESTS:-0} APP_MAX_ACTIVE_REQUESTS: ${APP_MAX_ACTIVE_REQUESTS:-0} APP_MAX_EXECUTION_TIME: ${APP_MAX_EXECUTION_TIME:-1200} DIFY_BIND_ADDRESS: ${DIFY_BIND_ADDRESS:-0.0.0.0} @@ -1037,6 +1036,9 @@ services: ports: - "${EXPOSE_NGINX_PORT:-80}:${NGINX_PORT:-80}" - "${EXPOSE_NGINX_SSL_PORT:-443}:${NGINX_SSL_PORT:-443}" + networks: + - ssrf_proxy_network + - default # The Weaviate vector store. weaviate: @@ -1311,7 +1313,7 @@ services: milvus-standalone: container_name: milvus-standalone - image: milvusdb/milvus:v2.6.3 + image: milvusdb/milvus:v2.5.15 profiles: - milvus command: ["milvus", "run", "standalone"] @@ -1500,7 +1502,7 @@ networks: # create a network between sandbox, api and ssrf_proxy, and can not access outside. ssrf_proxy_network: driver: bridge - internal: true + internal: true # 修改为false以允许访问外部网络(如192.168.0.64) milvus: driver: bridge opensearch-net: diff --git a/docker/dify/version b/docker/dify/version deleted file mode 100644 index e33692a..0000000 --- a/docker/dify/version +++ /dev/null @@ -1 +0,0 @@ -1.10.1 \ No newline at end of file diff --git a/schoolNewsServ/.bin/dify/动态知识库检索.yml b/schoolNewsServ/.bin/dify/动态知识库检索.yml index 285eec0..c2ed436 100644 --- a/schoolNewsServ/.bin/dify/动态知识库检索.yml +++ b/schoolNewsServ/.bin/dify/动态知识库检索.yml @@ -250,7 +250,7 @@ workflow: }' type: json desc: '' - headers: 'Authorization:Bearer dataset-HeDK9gHBqPnI4rBZ2q2Hm7rV + headers: 'Authorization:Bearer dataset-DCyO89dHNWmsXMzJaWCCQOKo Content-Type:application/json' isInIteration: true @@ -270,7 +270,7 @@ workflow: max_write_timeout: 0 title: HTTP 请求 type: http-request - url: http://192.168.0.64:7700/v1/datasets/{{#1747125586388.item#}}/retrieve + url: http://nginx:80/v1/datasets/{{#1747125586388.item#}}/retrieve variables: [] height: 157 id: '1747125795256'