chore: 更新请求超时时间和Docker配置
将axios请求超时时间从50000毫秒调整为10000毫秒,优化请求响应速度。同时,更新Docker配置文件,添加容器重启策略和额外主机配置,提高服务稳定性和网络访问能力。
This commit is contained in:
parent
e94697ec68
commit
94953687c1
|
@ -73,7 +73,7 @@ REDIS_PASSWORD=infini_rag_flow
|
||||||
|
|
||||||
SVR_HTTP_PORT=9380
|
SVR_HTTP_PORT=9380
|
||||||
|
|
||||||
# 镜像名称变更为zstar1003/ragflowplus:v0.2.1
|
# 镜像名称变更为zstar1003/ragflowplus:v0.2.1,原始为infiniflow/ragflow:v0.18.0-slim
|
||||||
RAGFLOW_IMAGE=zstar1003/ragflowplus:v0.2.1
|
RAGFLOW_IMAGE=zstar1003/ragflowplus:v0.2.1
|
||||||
RAGFLOWPLUS_MANAGEMENT_WEB_IMAGE=zstar1003/ragflowplus-management-web:v0.2.1
|
RAGFLOWPLUS_MANAGEMENT_WEB_IMAGE=zstar1003/ragflowplus-management-web:v0.2.1
|
||||||
RAGFLOWPLUS_MANAGEMENT_SERVER_IMAGE=zstar1003/ragflowplus-management-server:v0.2.1
|
RAGFLOWPLUS_MANAGEMENT_SERVER_IMAGE=zstar1003/ragflowplus-management-server:v0.2.1
|
||||||
|
|
|
@ -42,6 +42,9 @@ services:
|
||||||
- API_BASE_URL=/api
|
- API_BASE_URL=/api
|
||||||
networks:
|
networks:
|
||||||
- ragflow
|
- ragflow
|
||||||
|
restart: on-failure
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
# 后台信息管理系统后端
|
# 后台信息管理系统后端
|
||||||
management-backend:
|
management-backend:
|
||||||
|
@ -62,10 +65,11 @@ services:
|
||||||
- MANAGEMENT_ADMIN_USERNAME=${MANAGEMENT_ADMIN_USERNAME:-admin}
|
- MANAGEMENT_ADMIN_USERNAME=${MANAGEMENT_ADMIN_USERNAME:-admin}
|
||||||
- MANAGEMENT_ADMIN_PASSWORD=${MANAGEMENT_ADMIN_PASSWORD:-12345678}
|
- MANAGEMENT_ADMIN_PASSWORD=${MANAGEMENT_ADMIN_PASSWORD:-12345678}
|
||||||
- MANAGEMENT_JWT_SECRET=${MANAGEMENT_JWT_SECRET:-12345678}
|
- MANAGEMENT_JWT_SECRET=${MANAGEMENT_JWT_SECRET:-12345678}
|
||||||
extra_hosts:
|
|
||||||
- "host.docker.internal:host-gateway"
|
|
||||||
networks:
|
networks:
|
||||||
- ragflow
|
- ragflow
|
||||||
|
restart: on-failure
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
# # vllm 嵌入模型
|
# # vllm 嵌入模型
|
||||||
# vllm-bge:
|
# vllm-bge:
|
||||||
|
|
|
@ -42,6 +42,9 @@ services:
|
||||||
- API_BASE_URL=/api
|
- API_BASE_URL=/api
|
||||||
networks:
|
networks:
|
||||||
- ragflow
|
- ragflow
|
||||||
|
restart: on-failure
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
# 后台信息管理系统后端
|
# 后台信息管理系统后端
|
||||||
management-backend:
|
management-backend:
|
||||||
|
@ -62,10 +65,11 @@ services:
|
||||||
- MANAGEMENT_ADMIN_USERNAME=${MANAGEMENT_ADMIN_USERNAME:-admin}
|
- MANAGEMENT_ADMIN_USERNAME=${MANAGEMENT_ADMIN_USERNAME:-admin}
|
||||||
- MANAGEMENT_ADMIN_PASSWORD=${MANAGEMENT_ADMIN_PASSWORD:-12345678}
|
- MANAGEMENT_ADMIN_PASSWORD=${MANAGEMENT_ADMIN_PASSWORD:-12345678}
|
||||||
- MANAGEMENT_JWT_SECRET=${MANAGEMENT_JWT_SECRET:-12345678}
|
- MANAGEMENT_JWT_SECRET=${MANAGEMENT_JWT_SECRET:-12345678}
|
||||||
extra_hosts:
|
|
||||||
- "host.docker.internal:host-gateway"
|
|
||||||
networks:
|
networks:
|
||||||
- ragflow
|
- ragflow
|
||||||
|
restart: on-failure
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
|
|
|
@ -116,7 +116,7 @@ function createRequest(instance: AxiosInstance) {
|
||||||
// 请求体
|
// 请求体
|
||||||
data: {},
|
data: {},
|
||||||
// 请求超时
|
// 请求超时
|
||||||
timeout: 50000,
|
timeout: 10000,
|
||||||
// 跨域请求时是否携带 Cookies
|
// 跨域请求时是否携带 Cookies
|
||||||
withCredentials: false
|
withCredentials: false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue