Skip to content

添加删除常见转发类请求头的选项 #403

@Bliod-Cook

Description

@Bliod-Cook

例行检查 / Checklist

  • 我已确认目前没有类似 issue (I have checked for similar issues)
  • 我已确认我已升级到最新版本 (I have updated to the latest version)
  • 我已完整查看过项目 README,已确定现有版本无法满足需求 (I have read the README and confirmed the current version does not meet my needs)
  • 我理解并愿意跟进此 issue,协助测试和提供反馈 (I am willing to follow up on this issue, assist with testing, and provide feedback)
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭 (I understand and agree to the above, and I understand that the maintainers have limited time, so issues that do not follow the rules may be ignored or closed directly)

功能描述 / Feature Description

添加一个删除常见转发类请求头的选项,允许管理员设置全局/按渠道设置,开启后gpt-load会自动删除X-Forwarded-For/CF-Connecting-IP/...等会暴露上游ip/易被针对性识别的header

应用场景 / Use Case

有很多站点使用cdn,前置nginx自动加上的X-Forwarded-For header容易被判定为恶意请求主动拦截,经过cloudflare时加上的有关header会向上游泄露gpt-load有关域名以及客户端ip,而针对每个渠道手动配置header删除过于繁琐

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions