Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

反向代理默认 Connection 请求头固定为 "upgrade" #5937

Closed
wan92hen opened this issue Jul 25, 2024 · 2 comments
Closed

反向代理默认 Connection 请求头固定为 "upgrade" #5937

wan92hen opened this issue Jul 25, 2024 · 2 comments

Comments

@wan92hen
Copy link
Contributor

联系方式

No response

1Panel 版本

v1.10.13-lts

问题描述

默认生成的反向代理配置文件,使用了如下配置,导致在非预期的情况下升级了 websocket 连接。

proxy_set_header Connection "upgrade";

重现步骤

创建网站,查看网站配置文件,或者查看添加的反向代理规则配置文件。

期待的正确结果

配置文件中使用变量,保留客户端传入的 Connection 请求头

proxy_set_header Connection $http_connection;

相关日志输出

No response

附加信息

No response

@wanghe-fit2cloud
Copy link
Member

后续版本优化。

@wanghe-fit2cloud wanghe-fit2cloud changed the title [BUG]反向代理默认 Connection 请求头固定为 "upgrade" 反向代理默认 Connection 请求头固定为 "upgrade" Jul 25, 2024
@zhengkunwang223 zhengkunwang223 added this to the v1.10.14-lts milestone Jul 26, 2024
@wanghe-fit2cloud
Copy link
Member

v1.10.14-lts 版本已发布。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants