mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
|
Some checks failed
Build FastGPT images in Personal warehouse / get-vars (push) Has been cancelled
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Has been cancelled
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Has been cancelled
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Has been cancelled
问题场景: 当Plugin服务不是直接通过ip\docker内路由直接访问,而是通过nginx做域名转发的方式部署时,30行headers: req.headers会直接将host(此时host=fastgpt主项目的域名)带入,nginx会使用host值判断转发路由,而导致请求无法被正确转发到plugin项目中。 此次修改参照了projects/app/src/pages/api/lafApi/[...path].ts中的做法,同时删除了cookie\host\origin三个header |
||
|---|---|---|
| .. | ||
| app | ||
| mcp_server | ||
| sandbox | ||
| README.md | ||
目录说明
该目录为 FastGPT 主项目。
-
app fastgpt 核心应用。
-
sandbox 沙盒项目,用于运行工作流里的代码执行 (需求python环境为python:3.11,额外安装的包请于requirements.txt填写,在运行时会读取安装。
-
注意个别安装的包可能需要额外安装库(如pandas需要安装libffi))。
-
新加入python的包遇见超时或者权限拦截的问题(确定不是自己的语法问题),请进入docker容器内部执行以下指令:
docker exec -it 《替换成容器名》 /bin/bash chmod -x testSystemCall.sh bash ./testSystemCall.sh然后将新的数组替换或追加到src下sandbox的constants.py中的SYSTEM_CALLS数组即可
-