FastGPT icon indicating copy to clipboard operation
FastGPT copied to clipboard

容器fastgpt如何透传客户端IP

Open goactiongo opened this issue 2 months ago • 0 comments

流程开始节点后面添加了http控件用来记录客户端ip,但是记录的都是fastgpt容器的ip,如何实现客户端ip透传到http中,具体更改哪部分代码?

例如 // 透传Nginx传递的真实客户端IP头 'X-Forwarded-For': originalRequest.headers['x-forwarded-for'], // 原始请求中的客户端IP链 'X-Real-IP': originalRequest.headers['x-real-ip'], // 原始请求中的真实客户端IP 'Host': originalRequest.headers['host'] // 保留原始Host头

goactiongo avatar Oct 24 '25 00:10 goactiongo