Skip to content

容器fastgpt如何透传客户端IP #5808

@goactiongo

Description

@goactiongo

流程开始节点后面添加了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头

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions