| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| account | ||
| api | ||
| app/detail | ||
| chat | ||
| dashboard | ||
| dataset | ||
| login | ||
| more | ||
| price | ||
| 404.tsx | ||
| _app.tsx | ||
| _document.tsx | ||
| _error.tsx | ||
| index.module.scss | ||
| index.tsx | ||
| openapi.tsx |
问题场景: 当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 |
|---|---|---|
| .. | ||
| account | Loading commit data... | |
| api | Loading commit data... | |
| app/detail | Loading commit data... | |
| chat | Loading commit data... | |
| dashboard | Loading commit data... | |
| dataset | Loading commit data... | |
| login | Loading commit data... | |
| more | Loading commit data... | |
| price | Loading commit data... | |
| 404.tsx | Loading commit data... | |
| _app.tsx | Loading commit data... | |
| _document.tsx | Loading commit data... | |
| _error.tsx | Loading commit data... | |
| index.module.scss | Loading commit data... | |
| index.tsx | Loading commit data... | |
| openapi.tsx | Loading commit data... |