| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| data | ||
| public | ||
| scripts | ||
| src | ||
| test | ||
| .env.template | ||
| Dockerfile | ||
| next-i18next.config.js | ||
| next.config.js | ||
| package.json | ||
| tsconfig.json |
问题场景: 当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
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| data | Loading commit data... | |
| public | Loading commit data... | |
| scripts | Loading commit data... | |
| src | Loading commit data... | |
| test | Loading commit data... | |
| .env.template | Loading commit data... | |
| Dockerfile | Loading commit data... | |
| next-i18next.config.js | Loading commit data... | |
| next.config.js | Loading commit data... | |
| package.json | Loading commit data... | |
| tsconfig.json | Loading commit data... |