feat: 修改反向代理默认 Connection 请求头 (#5951)
Some checks failed
Build Test / build-linux-binary (push) Failing after -7m2s
Build / SonarCloud (push) Failing after -7m4s
sync2gitee / repo-sync (push) Failing after -7m6s

Refs https://github.com/1Panel-dev/1Panel/issues/5937
This commit is contained in:
zhengkunwang 2024-07-26 15:01:40 +08:00 committed by GitHub
parent 50efe607d4
commit 40f7ef90b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ location ^~ /test {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Connection $http_connection;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;

View file

@ -10,7 +10,7 @@ server {
proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Connection $http_connection;
access_log /www/sites/domain/log/access.log main;