Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
e5a791e4
authored
Feb 13, 2026
by
Archer
Committed by
GitHub
Feb 13, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc (#6429)
* perf: health check * doc
parent
3096ac5f
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
323 additions
and
564 deletions
+323
-564
deploy/args.json
+1
-1
deploy/dev/docker-compose.cn.yml
+1
-1
deploy/dev/docker-compose.yml
+1
-1
deploy/docker/cn/docker-compose.milvus.yml
+13
-25
deploy/docker/cn/docker-compose.oceanbase.yml
+13
-25
deploy/docker/cn/docker-compose.pg.yml
+13
-25
deploy/docker/cn/docker-compose.seekdb.yml
+13
-25
deploy/docker/cn/docker-compose.zilliz.yml
+13
-25
deploy/docker/global/docker-compose.milvus.yml
+13
-25
deploy/docker/global/docker-compose.oceanbase.yml
+13
-25
deploy/docker/global/docker-compose.pg.yml
+13
-25
deploy/docker/global/docker-compose.seekdb.yml
+13
-25
deploy/docker/global/docker-compose.ziliiz.yml
+13
-25
deploy/templates/docker-compose.prod.yml
+12
-24
document/content/docs/upgrading/4-14/4147.mdx
+4
-4
document/data/doc-last-modified.json
+18
-11
document/public/deploy/docker/cn/docker-compose.milvus.yml
+13
-25
document/public/deploy/docker/cn/docker-compose.oceanbase.yml
+13
-25
document/public/deploy/docker/cn/docker-compose.pg.yml
+13
-25
document/public/deploy/docker/cn/docker-compose.seekdb.yml
+13
-25
document/public/deploy/docker/cn/docker-compose.zilliz.yml
+13
-25
document/public/deploy/docker/global/docker-compose.milvus.yml
+13
-25
document/public/deploy/docker/global/docker-compose.oceanbase.yml
+13
-25
document/public/deploy/docker/global/docker-compose.pg.yml
+13
-25
document/public/deploy/docker/global/docker-compose.seekdb.yml
+13
-25
document/public/deploy/docker/global/docker-compose.ziliiz.yml
+13
-25
packages/service/common/system/constants.ts
+11
-0
projects/app/src/instrumentation.ts
+9
-7
projects/app/src/service/common/system/health.ts
+6
-15
No files found.
deploy/args.json
View file @
e5a791e4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"fastgpt"
:
"v4.14.7"
,
"fastgpt"
:
"v4.14.7"
,
"fastgpt-sandbox"
:
"v4.14.7"
,
"fastgpt-sandbox"
:
"v4.14.7"
,
"fastgpt-mcp_server"
:
"v4.14.6"
,
"fastgpt-mcp_server"
:
"v4.14.6"
,
"fastgpt-plugin"
:
"v0.5.
3
"
,
"fastgpt-plugin"
:
"v0.5.
4
"
,
"aiproxy"
:
"v0.3.5"
,
"aiproxy"
:
"v0.3.5"
,
"aiproxy-pg"
:
"0.8.0-pg15"
,
"aiproxy-pg"
:
"0.8.0-pg15"
,
"mongo"
:
"5.0.32"
,
"mongo"
:
"5.0.32"
,
...
...
deploy/dev/docker-compose.cn.yml
View file @
e5a791e4
...
@@ -153,7 +153,7 @@ services:
...
@@ -153,7 +153,7 @@ services:
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
-
FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
ports
:
ports
:
...
...
deploy/dev/docker-compose.yml
View file @
e5a791e4
...
@@ -153,7 +153,7 @@ services:
...
@@ -153,7 +153,7 @@ services:
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
-
FASTGPT_ENDPOINT=http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
ports
:
ports
:
...
...
deploy/docker/cn/docker-compose.milvus.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -189,7 +196,7 @@ services:
...
@@ -189,7 +196,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -213,19 +220,8 @@ services:
...
@@ -213,19 +220,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -254,31 +250,23 @@ services:
...
@@ -254,31 +250,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/docker/cn/docker-compose.oceanbase.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -166,7 +173,7 @@ services:
...
@@ -166,7 +173,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -190,19 +197,8 @@ services:
...
@@ -190,19 +197,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -231,31 +227,23 @@ services:
...
@@ -231,31 +227,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/docker/cn/docker-compose.pg.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -147,7 +154,7 @@ services:
...
@@ -147,7 +154,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -171,19 +178,8 @@ services:
...
@@ -171,19 +178,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -212,31 +208,23 @@ services:
...
@@ -212,31 +208,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/docker/cn/docker-compose.seekdb.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -153,7 +160,7 @@ services:
...
@@ -153,7 +160,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -177,19 +184,8 @@ services:
...
@@ -177,19 +184,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -218,31 +214,23 @@ services:
...
@@ -218,31 +214,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/docker/cn/docker-compose.zilliz.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -131,7 +138,7 @@ services:
...
@@ -131,7 +138,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -155,19 +162,8 @@ services:
...
@@ -155,19 +162,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -196,31 +192,23 @@ services:
...
@@ -196,31 +192,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/docker/global/docker-compose.milvus.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -189,7 +196,7 @@ services:
...
@@ -189,7 +196,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -213,19 +220,8 @@ services:
...
@@ -213,19 +220,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -254,31 +250,23 @@ services:
...
@@ -254,31 +250,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/docker/global/docker-compose.oceanbase.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -166,7 +173,7 @@ services:
...
@@ -166,7 +173,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -190,19 +197,8 @@ services:
...
@@ -190,19 +197,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -231,31 +227,23 @@ services:
...
@@ -231,31 +227,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/docker/global/docker-compose.pg.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -147,7 +154,7 @@ services:
...
@@ -147,7 +154,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -171,19 +178,8 @@ services:
...
@@ -171,19 +178,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -212,31 +208,23 @@ services:
...
@@ -212,31 +208,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/docker/global/docker-compose.seekdb.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -153,7 +160,7 @@ services:
...
@@ -153,7 +160,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -177,19 +184,8 @@ services:
...
@@ -177,19 +184,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -218,31 +214,23 @@ services:
...
@@ -218,31 +214,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/docker/global/docker-compose.ziliiz.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -131,7 +138,7 @@ services:
...
@@ -131,7 +138,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -155,19 +162,8 @@ services:
...
@@ -155,19 +162,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -196,31 +192,23 @@ services:
...
@@ -196,31 +192,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
deploy/templates/docker-compose.prod.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -130,7 +137,7 @@ ${{vec.db}}
...
@@ -130,7 +137,7 @@ ${{vec.db}}
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -154,19 +161,8 @@ ${{vec.db}}
...
@@ -154,19 +161,8 @@ ${{vec.db}}
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -195,7 +191,8 @@ ${{vec.db}}
...
@@ -195,7 +191,8 @@ ${{vec.db}}
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
${{fastgpt-plugin.image}}:${{fastgpt-plugin.tag}}
image
:
${{fastgpt-plugin.image}}:${{fastgpt-plugin.tag}}
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
...
@@ -203,23 +200,14 @@ ${{vec.db}}
...
@@ -203,23 +200,14 @@ ${{vec.db}}
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/content/docs/upgrading/4-14/4147.mdx
View file @
e5a791e4
...
@@ -9,15 +9,15 @@ description: 'FastGPT V4.14.7 更新说明'
...
@@ -9,15 +9,15 @@ description: 'FastGPT V4.14.7 更新说明'
- 更新 FastGPT 镜像 tag: v4.14.7
- 更新 FastGPT 镜像 tag: v4.14.7
- 更新 FastGPT 商业版镜像 tag: v4.14.7
- 更新 FastGPT 商业版镜像 tag: v4.14.7
- 更新 fastgpt-plugin 镜像 tag: v0.5.
3
- 更新 fastgpt-plugin 镜像 tag: v0.5.
4
- mcp_server 无需更新
- mcp_server 无需更新
(4.14.7 镜像不可用,可用旧的)
- sandbox 无需更新
- sandbox 无需更新
- 更新 AIProxy 镜像 tag: 0.3.15
- 更新 AIProxy 镜像 tag: 0.3.15
- mongo 无需更新
- mongo 无需更新
### 2. 更新系统环境变量
### 2. 更新系统环境变量
更新了日志系统,包括但不限于日志打印、日志采集和日志分析等
更新了日志系统,包括但不限于日志打印、日志采集和日志分析等
。
```dotenv
```dotenv
# 移除环境变量
# 移除环境变量
...
@@ -27,7 +27,7 @@ SIGNOZ_BASE_URL=
...
@@ -27,7 +27,7 @@ SIGNOZ_BASE_URL=
SIGNOZ_SERVICE_NAME=
SIGNOZ_SERVICE_NAME=
SIGNOZ_STORE_LEVEL=
SIGNOZ_STORE_LEVEL=
# 新增以下 6 个变量
# 新增以下 6 个变量
(fastgpt,fastgpt-pro,fastgpt-plugin,fastgpt-mcp-server均为相同变量)
LOG_ENABLE_CONSOLE=true # 是否开启控制台打印
LOG_ENABLE_CONSOLE=true # 是否开启控制台打印
LOG_CONSOLE_LEVEL=debug # 控制台打印最低日志等级
LOG_CONSOLE_LEVEL=debug # 控制台打印最低日志等级
LOG_ENABLE_OTEL=false # 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL=false # 是否开启 OTEL 日志收集
...
...
document/data/doc-last-modified.json
View file @
e5a791e4
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
"document/content/docs/faq/index.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/faq/index.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/faq/other.mdx"
:
"2025-08-04T22:07:52+08:00"
,
"document/content/docs/faq/other.mdx"
:
"2025-08-04T22:07:52+08:00"
,
"document/content/docs/faq/points_consumption.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/faq/points_consumption.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/introduction/cloud.mdx"
:
"202
5-08-02T19:38:37
+08:00"
,
"document/content/docs/introduction/cloud.mdx"
:
"202
6-02-12T18:45:30
+08:00"
,
"document/content/docs/introduction/commercial.mdx"
:
"2025-09-21T23:09:46+08:00"
,
"document/content/docs/introduction/commercial.mdx"
:
"2025-09-21T23:09:46+08:00"
,
"document/content/docs/introduction/development/configuration.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/introduction/development/configuration.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/introduction/development/custom-models/bge-rerank.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/custom-models/bge-rerank.mdx"
:
"2025-07-23T21:35:03+08:00"
,
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
"document/content/docs/introduction/development/custom-models/xinference.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/introduction/development/custom-models/xinference.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/introduction/development/design/dataset.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/design/dataset.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/design/design_plugin.mdx"
:
"2025-11-06T14:47:55+08:00"
,
"document/content/docs/introduction/development/design/design_plugin.mdx"
:
"2025-11-06T14:47:55+08:00"
,
"document/content/docs/introduction/development/docker.mdx"
:
"2026-02-12T
18:02:02
+08:00"
,
"document/content/docs/introduction/development/docker.mdx"
:
"2026-02-12T
20:12:18
+08:00"
,
"document/content/docs/introduction/development/faq.mdx"
:
"2025-08-12T22:22:18+08:00"
,
"document/content/docs/introduction/development/faq.mdx"
:
"2025-08-12T22:22:18+08:00"
,
"document/content/docs/introduction/development/intro.mdx"
:
"2026-02-12T18:02:02+08:00"
,
"document/content/docs/introduction/development/intro.mdx"
:
"2026-02-12T18:02:02+08:00"
,
"document/content/docs/introduction/development/migration/docker_db.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/migration/docker_db.mdx"
:
"2025-07-23T21:35:03+08:00"
,
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
"document/content/docs/introduction/development/proxy/cloudflare.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/proxy/cloudflare.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/proxy/http_proxy.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/proxy/http_proxy.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/proxy/nginx.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/proxy/nginx.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/development/sealos.mdx"
:
"202
5-11-11T14:05:02
+08:00"
,
"document/content/docs/introduction/development/sealos.mdx"
:
"202
6-02-12T18:45:30
+08:00"
,
"document/content/docs/introduction/development/signoz.mdx"
:
"2026-02-12T16:37:50+08:00"
,
"document/content/docs/introduction/development/signoz.mdx"
:
"2026-02-12T16:37:50+08:00"
,
"document/content/docs/introduction/guide/DialogBoxes/htmlRendering.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/DialogBoxes/htmlRendering.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/DialogBoxes/quoteList.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/DialogBoxes/quoteList.mdx"
:
"2025-07-23T21:35:03+08:00"
,
...
@@ -88,6 +88,12 @@
...
@@ -88,6 +88,12 @@
"document/content/docs/introduction/guide/team_permissions/invitation_link.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/team_permissions/invitation_link.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/team_permissions/team_roles_permissions.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/guide/team_permissions/team_roles_permissions.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/introduction/index.mdx"
:
"2025-09-29T11:34:11+08:00"
,
"document/content/docs/introduction/index.mdx"
:
"2025-09-29T11:34:11+08:00"
,
"document/content/docs/openapi/app.mdx"
:
"2026-02-12T18:45:30+08:00"
,
"document/content/docs/openapi/chat.mdx"
:
"2026-02-12T18:45:30+08:00"
,
"document/content/docs/openapi/dataset.mdx"
:
"2026-02-12T18:45:30+08:00"
,
"document/content/docs/openapi/index.mdx"
:
"2026-02-12T18:45:30+08:00"
,
"document/content/docs/openapi/intro.mdx"
:
"2026-02-12T18:45:30+08:00"
,
"document/content/docs/openapi/share.mdx"
:
"2026-02-12T18:45:30+08:00"
,
"document/content/docs/protocol/index.mdx"
:
"2025-07-30T15:38:30+08:00"
,
"document/content/docs/protocol/index.mdx"
:
"2025-07-30T15:38:30+08:00"
,
"document/content/docs/protocol/open-source.en.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/protocol/open-source.en.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/protocol/open-source.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/protocol/open-source.mdx"
:
"2025-08-05T23:20:39+08:00"
,
...
@@ -96,7 +102,7 @@
...
@@ -96,7 +102,7 @@
"document/content/docs/protocol/terms.en.mdx"
:
"2025-12-15T23:36:54+08:00"
,
"document/content/docs/protocol/terms.en.mdx"
:
"2025-12-15T23:36:54+08:00"
,
"document/content/docs/protocol/terms.mdx"
:
"2025-12-15T23:36:54+08:00"
,
"document/content/docs/protocol/terms.mdx"
:
"2025-12-15T23:36:54+08:00"
,
"document/content/docs/toc.en.mdx"
:
"2026-02-12T18:02:02+08:00"
,
"document/content/docs/toc.en.mdx"
:
"2026-02-12T18:02:02+08:00"
,
"document/content/docs/toc.mdx"
:
"2026-02-12T1
6:37:5
0+08:00"
,
"document/content/docs/toc.mdx"
:
"2026-02-12T1
8:45:3
0+08:00"
,
"document/content/docs/upgrading/4-10/4100.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-10/4100.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-10/4101.mdx"
:
"2025-09-08T20:07:20+08:00"
,
"document/content/docs/upgrading/4-10/4101.mdx"
:
"2025-09-08T20:07:20+08:00"
,
"document/content/docs/upgrading/4-11/4110.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-11/4110.mdx"
:
"2025-08-05T23:20:39+08:00"
,
...
@@ -136,12 +142,12 @@
...
@@ -136,12 +142,12 @@
"document/content/docs/upgrading/4-8/461.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/461.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/462.mdx"
:
"2025-08-04T22:07:52+08:00"
,
"document/content/docs/upgrading/4-8/462.mdx"
:
"2025-08-04T22:07:52+08:00"
,
"document/content/docs/upgrading/4-8/463.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/463.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/464.mdx"
:
"2026-02-12T18:
02:02
+08:00"
,
"document/content/docs/upgrading/4-8/464.mdx"
:
"2026-02-12T18:
45:30
+08:00"
,
"document/content/docs/upgrading/4-8/465.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/465.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/466.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/466.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/467.mdx"
:
"2026-02-12T18:
02:02
+08:00"
,
"document/content/docs/upgrading/4-8/467.mdx"
:
"2026-02-12T18:
45:30
+08:00"
,
"document/content/docs/upgrading/4-8/468.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/468.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/469.mdx"
:
"2026-02-12T18:
02:02
+08:00"
,
"document/content/docs/upgrading/4-8/469.mdx"
:
"2026-02-12T18:
45:30
+08:00"
,
"document/content/docs/upgrading/4-8/47.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/47.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/471.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/471.mdx"
:
"2025-08-05T23:20:39+08:00"
,
"document/content/docs/upgrading/4-8/48.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/48.mdx"
:
"2025-08-02T19:38:37+08:00"
,
...
@@ -168,14 +174,14 @@
...
@@ -168,14 +174,14 @@
"document/content/docs/upgrading/4-8/487.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/487.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/488.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/488.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/489.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-8/489.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/490.mdx"
:
"2026-02-12T18:
02:02
+08:00"
,
"document/content/docs/upgrading/4-9/490.mdx"
:
"2026-02-12T18:
45:30
+08:00"
,
"document/content/docs/upgrading/4-9/491.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/491.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/4910.mdx"
:
"2025-08-04T22:07:52+08:00"
,
"document/content/docs/upgrading/4-9/4910.mdx"
:
"2025-08-04T22:07:52+08:00"
,
"document/content/docs/upgrading/4-9/4911.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/4911.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/4912.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/4912.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/4913.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/4913.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/4914.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/4914.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/492.mdx"
:
"2026-02-12T18:
02:02
+08:00"
,
"document/content/docs/upgrading/4-9/492.mdx"
:
"2026-02-12T18:
45:30
+08:00"
,
"document/content/docs/upgrading/4-9/493.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/493.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/494.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/494.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/495.mdx"
:
"2025-08-02T19:38:37+08:00"
,
"document/content/docs/upgrading/4-9/495.mdx"
:
"2025-08-02T19:38:37+08:00"
,
...
@@ -195,8 +201,8 @@
...
@@ -195,8 +201,8 @@
"document/content/docs/use-cases/app-cases/translate-subtitle-using-gpt.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/use-cases/app-cases/translate-subtitle-using-gpt.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/use-cases/external-integration/dingtalk.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/use-cases/external-integration/dingtalk.mdx"
:
"2025-07-23T21:35:03+08:00"
,
"document/content/docs/use-cases/external-integration/feishu.mdx"
:
"2025-07-24T14:23:04+08:00"
,
"document/content/docs/use-cases/external-integration/feishu.mdx"
:
"2025-07-24T14:23:04+08:00"
,
"document/content/docs/use-cases/external-integration/official_account.mdx"
:
"202
5-08-05T23:20:39
+08:00"
,
"document/content/docs/use-cases/external-integration/official_account.mdx"
:
"202
6-02-12T18:45:30
+08:00"
,
"document/content/docs/use-cases/external-integration/openapi.mdx"
:
"2026-02-12T18:
02:02
+08:00"
,
"document/content/docs/use-cases/external-integration/openapi.mdx"
:
"2026-02-12T18:
45:30
+08:00"
,
"document/content/docs/use-cases/external-integration/wecom.mdx"
:
"2025-12-10T20:07:05+08:00"
,
"document/content/docs/use-cases/external-integration/wecom.mdx"
:
"2025-12-10T20:07:05+08:00"
,
"document/content/docs/use-cases/index.mdx"
:
"2025-07-24T14:23:04+08:00"
"document/content/docs/use-cases/index.mdx"
:
"2025-07-24T14:23:04+08:00"
}
}
\ No newline at end of file
document/public/deploy/docker/cn/docker-compose.milvus.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -189,7 +196,7 @@ services:
...
@@ -189,7 +196,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -213,19 +220,8 @@ services:
...
@@ -213,19 +220,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -254,31 +250,23 @@ services:
...
@@ -254,31 +250,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/public/deploy/docker/cn/docker-compose.oceanbase.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -166,7 +173,7 @@ services:
...
@@ -166,7 +173,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -190,19 +197,8 @@ services:
...
@@ -190,19 +197,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -231,31 +227,23 @@ services:
...
@@ -231,31 +227,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/public/deploy/docker/cn/docker-compose.pg.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -147,7 +154,7 @@ services:
...
@@ -147,7 +154,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -171,19 +178,8 @@ services:
...
@@ -171,19 +178,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -212,31 +208,23 @@ services:
...
@@ -212,31 +208,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/public/deploy/docker/cn/docker-compose.seekdb.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -153,7 +160,7 @@ services:
...
@@ -153,7 +160,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -177,19 +184,8 @@ services:
...
@@ -177,19 +184,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -218,31 +214,23 @@ services:
...
@@ -218,31 +214,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/public/deploy/docker/cn/docker-compose.zilliz.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -131,7 +138,7 @@ services:
...
@@ -131,7 +138,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -155,19 +162,8 @@ services:
...
@@ -155,19 +162,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -196,31 +192,23 @@ services:
...
@@ -196,31 +192,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
3
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/public/deploy/docker/global/docker-compose.milvus.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -189,7 +196,7 @@ services:
...
@@ -189,7 +196,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -213,19 +220,8 @@ services:
...
@@ -213,19 +220,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -254,31 +250,23 @@ services:
...
@@ -254,31 +250,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/public/deploy/docker/global/docker-compose.oceanbase.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -166,7 +173,7 @@ services:
...
@@ -166,7 +173,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -190,19 +197,8 @@ services:
...
@@ -190,19 +197,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -231,31 +227,23 @@ services:
...
@@ -231,31 +227,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/public/deploy/docker/global/docker-compose.pg.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -147,7 +154,7 @@ services:
...
@@ -147,7 +154,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -171,19 +178,8 @@ services:
...
@@ -171,19 +178,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -212,31 +208,23 @@ services:
...
@@ -212,31 +208,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/public/deploy/docker/global/docker-compose.seekdb.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -153,7 +160,7 @@ services:
...
@@ -153,7 +160,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -177,19 +184,8 @@ services:
...
@@ -177,19 +184,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -218,31 +214,23 @@ services:
...
@@ -218,31 +214,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
document/public/deploy/docker/global/docker-compose.ziliiz.yml
View file @
e5a791e4
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
...
@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_ENDPOINT
:
http://fastgpt-minio:9000
# 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_FORCE_PATH_STYLE
:
true
STORAGE_S3_MAX_RETRIES
:
3
STORAGE_S3_MAX_RETRIES
:
3
# Log 配置
x-log-config
:
&x-log-config
LOG_ENABLE_CONSOLE
:
true
LOG_CONSOLE_LEVEL
:
debug
LOG_ENABLE_OTEL
:
false
LOG_OTEL_LEVEL
:
info
LOG_OTEL_URL
:
xxx/v1/logs
# 向量库相关配置
# 向量库相关配置
x-vec-config
:
&x-vec-config
x-vec-config
:
&x-vec-config
...
@@ -131,7 +138,7 @@ services:
...
@@ -131,7 +138,7 @@ services:
-
vectorDB
-
vectorDB
restart
:
always
restart
:
always
environment
:
environment
:
<<
:
[
*x-share-db-config
,
*x-vec-config
]
<<
:
[
*x-share-db-config
,
*x-vec-config
,
*x-log-config
]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
FE_DOMAIN
:
FE_DOMAIN
:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
...
@@ -155,19 +162,8 @@ services:
...
@@ -155,19 +162,8 @@ services:
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN
:
*x-aiproxy-token
AIPROXY_API_TOKEN
:
*x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL
:
debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
# 传递给 OTLP 收集器的服务名称
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
LOG_OTEL_SERVICE_NAME
:
fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
# 工作流最大运行次数
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES
:
1000
WORKFLOW_MAX_RUN_TIMES
:
1000
...
@@ -196,31 +192,23 @@ services:
...
@@ -196,31 +192,23 @@ services:
-
3005:3000
-
3005:3000
restart
:
always
restart
:
always
environment
:
environment
:
-
FASTGPT_ENDPOINT=http://fastgpt:3000
<<
:
[
*x-log-config
]
FASTGPT_ENDPOINT
:
http://fastgpt:3000
fastgpt-plugin
:
fastgpt-plugin
:
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
3
image
:
ghcr.io/labring/fastgpt-plugin:v0.5.
4
container_name
:
fastgpt-plugin
container_name
:
fastgpt-plugin
restart
:
always
restart
:
always
networks
:
networks
:
-
fastgpt
-
fastgpt
environment
:
environment
:
<<
:
*x-share-db-config
<<
:
[
*x-share-db-config
,
*x-log-config
]
AUTH_TOKEN
:
*x-plugin-auth-token
AUTH_TOKEN
:
*x-plugin-auth-token
# 工具网络请求,最大请求和响应体
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
SERVICE_REQUEST_MAX_CONTENT_LENGTH
:
10
# 最大 API 请求体大小
# 最大 API 请求体大小
MAX_API_SIZE
:
10
MAX_API_SIZE
:
10
# Log 配置
# 传递给 OTLP 收集器的服务名称
# 日志等级: debug, info, warn, error
LOG_LEVEL
:
info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE
:
true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL
:
false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL
:
info
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_SERVICE_NAME
:
fastgpt-plugin
LOG_OTEL_URL
:
http://localhost:4318/v1/logs
depends_on
:
depends_on
:
fastgpt-minio
:
fastgpt-minio
:
condition
:
service_healthy
condition
:
service_healthy
...
...
packages/service/common/system/constants.ts
View file @
e5a791e4
...
@@ -9,3 +9,14 @@ export const isProVersion = () => {
...
@@ -9,3 +9,14 @@ export const isProVersion = () => {
export
const
serviceRequestMaxContentLength
=
export
const
serviceRequestMaxContentLength
=
Number
(
process
.
env
.
SERVICE_REQUEST_MAX_CONTENT_LENGTH
||
10
)
*
1024
*
1024
;
// 10MB
Number
(
process
.
env
.
SERVICE_REQUEST_MAX_CONTENT_LENGTH
||
10
)
*
1024
*
1024
;
// 10MB
export
const
InitialErrorEnum
=
{
S3_ERROR
:
's3_error'
,
MONGO_ERROR
:
'mongo_error'
,
REDIS_ERROR
:
'redis_error'
,
VECTORDB_ERROR
:
'vectordb_error'
,
PLUGIN_ERROR
:
'plugin_error'
,
PRO_ERROR
:
'pro_error'
,
SANDBOX_ERROR
:
'code_sandbox_error'
,
MCP_SERVER_ERROR
:
'mcp_server_error'
};
projects/app/src/instrumentation.ts
View file @
e5a791e4
...
@@ -26,9 +26,10 @@ export async function register() {
...
@@ -26,9 +26,10 @@ export async function register() {
{
initBullMQWorkers
},
{
initBullMQWorkers
},
{
initS3Buckets
},
{
initS3Buckets
},
{
initGeo
},
{
initGeo
},
{
instrumentationCheck
,
ErrorEnum
},
{
instrumentationCheck
},
{
getErrText
},
{
getErrText
},
{
configureLogger
,
getLogger
,
LogCategories
}
{
configureLogger
,
getLogger
,
LogCategories
},
{
InitialErrorEnum
}
]
=
await
Promise
.
all
([
]
=
await
Promise
.
all
([
import
(
'@fastgpt/service/common/mongo/init'
),
import
(
'@fastgpt/service/common/mongo/init'
),
import
(
'@fastgpt/service/common/mongo/index'
),
import
(
'@fastgpt/service/common/mongo/index'
),
...
@@ -48,7 +49,8 @@ export async function register() {
...
@@ -48,7 +49,8 @@ export async function register() {
import
(
'@fastgpt/service/common/geo'
),
import
(
'@fastgpt/service/common/geo'
),
import
(
'@/service/common/system/health'
),
import
(
'@/service/common/system/health'
),
import
(
'@fastgpt/global/common/error/utils'
),
import
(
'@fastgpt/global/common/error/utils'
),
import
(
'@fastgpt/service/common/logger'
)
import
(
'@fastgpt/service/common/logger'
),
import
(
'@fastgpt/service/common/system/constants'
)
]);
]);
await
configureLogger
();
await
configureLogger
();
...
@@ -67,19 +69,19 @@ export async function register() {
...
@@ -67,19 +69,19 @@ export async function register() {
url
:
MONGO_URL
,
url
:
MONGO_URL
,
connectedCb
:
()
=>
startMongoWatch
()
connectedCb
:
()
=>
startMongoWatch
()
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
return
Promise
.
reject
(
`[
${
ErrorEnum
.
MONGO_ERROR
}
]:
${
getErrText
(
err
)}
`
);
return
Promise
.
reject
(
`[
${
Initial
ErrorEnum
.
MONGO_ERROR
}
]:
${
getErrText
(
err
)}
`
);
}),
}),
connectMongo
({
connectMongo
({
db
:
connectionLogMongo
,
db
:
connectionLogMongo
,
url
:
MONGO_LOG_URL
url
:
MONGO_LOG_URL
}).
catch
((
err
)
=>
{
}).
catch
((
err
)
=>
{
return
Promise
.
reject
(
`[
${
ErrorEnum
.
MONGO_ERROR
}
]:
${
getErrText
(
err
)}
`
);
return
Promise
.
reject
(
`[
${
Initial
ErrorEnum
.
MONGO_ERROR
}
]:
${
getErrText
(
err
)}
`
);
}),
}),
initBullMQWorkers
().
catch
((
err
)
=>
{
initBullMQWorkers
().
catch
((
err
)
=>
{
return
Promise
.
reject
(
`[
${
ErrorEnum
.
REDIS_ERROR
}
]:
${
getErrText
(
err
)}
`
);
return
Promise
.
reject
(
`[
${
Initial
ErrorEnum
.
REDIS_ERROR
}
]:
${
getErrText
(
err
)}
`
);
}),
}),
initVectorStore
().
catch
((
err
)
=>
{
initVectorStore
().
catch
((
err
)
=>
{
return
Promise
.
reject
(
`[
${
ErrorEnum
.
VECTORDB_ERROR
}
]:
${
getErrText
(
err
)}
`
);
return
Promise
.
reject
(
`[
${
Initial
ErrorEnum
.
VECTORDB_ERROR
}
]:
${
getErrText
(
err
)}
`
);
})
})
]);
]);
...
...
projects/app/src/service/common/system/health.ts
View file @
e5a791e4
...
@@ -3,19 +3,10 @@ import { SandboxCodeTypeEnum } from '@fastgpt/global/core/workflow/template/syst
...
@@ -3,19 +3,10 @@ import { SandboxCodeTypeEnum } from '@fastgpt/global/core/workflow/template/syst
import
{
POST
}
from
'@fastgpt/service/common/api/plusRequest'
;
import
{
POST
}
from
'@fastgpt/service/common/api/plusRequest'
;
import
{
getLogger
,
LogCategories
}
from
'@fastgpt/service/common/logger'
;
import
{
getLogger
,
LogCategories
}
from
'@fastgpt/service/common/logger'
;
import
{
S3Buckets
}
from
'@fastgpt/service/common/s3/constants'
;
import
{
S3Buckets
}
from
'@fastgpt/service/common/s3/constants'
;
import
{
InitialErrorEnum
}
from
'@fastgpt/service/common/system/constants'
;
import
{
runCode
}
from
'@fastgpt/service/core/workflow/dispatch/tools/codeSandbox'
;
import
{
runCode
}
from
'@fastgpt/service/core/workflow/dispatch/tools/codeSandbox'
;
import
{
loadModelProviders
}
from
'@fastgpt/service/thirdProvider/fastgptPlugin/model'
;
import
{
loadModelProviders
}
from
'@fastgpt/service/thirdProvider/fastgptPlugin/model'
;
export
const
ErrorEnum
=
{
S3_ERROR
:
's3_error'
,
MONGO_ERROR
:
'mongo_error'
,
REDIS_ERROR
:
'redis_error'
,
VECTORDB_ERROR
:
'vectordb_error'
,
PLUGIN_ERROR
:
'plugin_error'
,
PRO_ERROR
:
'pro_error'
,
SANDBOX_ERROR
:
'code_sandbox_error'
,
MCP_SERVER_ERROR
:
'mcp_server_error'
};
export
const
instrumentationCheck
=
async
()
=>
{
export
const
instrumentationCheck
=
async
()
=>
{
const
logger
=
getLogger
(
LogCategories
.
SYSTEM
);
const
logger
=
getLogger
(
LogCategories
.
SYSTEM
);
logger
.
info
(
'instrumentation check start'
);
logger
.
info
(
'instrumentation check start'
);
...
@@ -27,12 +18,12 @@ export const instrumentationCheck = async () => {
...
@@ -27,12 +18,12 @@ export const instrumentationCheck = async () => {
try
{
try
{
await
global
.
s3BucketMap
[
S3Buckets
.
public
].
checkBucketHealth
();
await
global
.
s3BucketMap
[
S3Buckets
.
public
].
checkBucketHealth
();
}
catch
(
error
)
{
}
catch
(
error
)
{
return
Promise
.
reject
(
`[
${
ErrorEnum
.
S3_ERROR
}
] public bucket:
${
getErrText
(
error
)}
`
);
return
Promise
.
reject
(
`[
${
Initial
ErrorEnum
.
S3_ERROR
}
] public bucket:
${
getErrText
(
error
)}
`
);
}
}
try
{
try
{
await
global
.
s3BucketMap
[
S3Buckets
.
private
].
checkBucketHealth
();
await
global
.
s3BucketMap
[
S3Buckets
.
private
].
checkBucketHealth
();
}
catch
(
error
)
{
}
catch
(
error
)
{
return
Promise
.
reject
(
`[
${
ErrorEnum
.
S3_ERROR
}
] private bucket:
${
getErrText
(
error
)}
`
);
return
Promise
.
reject
(
`[
${
Initial
ErrorEnum
.
S3_ERROR
}
] private bucket:
${
getErrText
(
error
)}
`
);
}
}
/* server */
/* server */
...
@@ -40,7 +31,7 @@ export const instrumentationCheck = async () => {
...
@@ -40,7 +31,7 @@ export const instrumentationCheck = async () => {
try
{
try
{
await
loadModelProviders
();
await
loadModelProviders
();
}
catch
(
error
)
{
}
catch
(
error
)
{
const
message
=
`[
${
ErrorEnum
.
PLUGIN_ERROR
}
]:
${
getErrText
(
error
)}
`
;
const
message
=
`[
${
Initial
ErrorEnum
.
PLUGIN_ERROR
}
]:
${
getErrText
(
error
)}
`
;
console
.
error
(
message
);
console
.
error
(
message
);
return
Promise
.
reject
(
message
);
return
Promise
.
reject
(
message
);
}
}
...
@@ -52,7 +43,7 @@ export const instrumentationCheck = async () => {
...
@@ -52,7 +43,7 @@ export const instrumentationCheck = async () => {
throw
new
Error
(
'Root key is invalid'
);
throw
new
Error
(
'Root key is invalid'
);
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
const
message
=
`[
${
ErrorEnum
.
PRO_ERROR
}
]:
${
getErrText
(
error
)}
`
;
const
message
=
`[
${
Initial
ErrorEnum
.
PRO_ERROR
}
]:
${
getErrText
(
error
)}
`
;
console
.
error
(
message
,
{
error
});
console
.
error
(
message
,
{
error
});
return
Promise
.
reject
(
message
);
return
Promise
.
reject
(
message
);
}
}
...
@@ -69,7 +60,7 @@ export const instrumentationCheck = async () => {
...
@@ -69,7 +60,7 @@ export const instrumentationCheck = async () => {
variables
:
{}
variables
:
{}
});
});
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
warn
(
`
${
ErrorEnum
.
SANDBOX_ERROR
}
]:
${
getErrText
(
error
)}
`
);
console
.
warn
(
`
${
Initial
ErrorEnum
.
SANDBOX_ERROR
}
]:
${
getErrText
(
error
)}
`
);
}
}
logger
.
info
(
'instrumentation check finish'
);
logger
.
info
(
'instrumentation check finish'
);
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment