update workflow
All checks were successful
Nginx / build (push) Successful in 31s

This commit is contained in:
lychang
2025-06-24 02:17:11 +08:00
parent 299dcaec0e
commit d74c56f022

View File

@@ -70,13 +70,19 @@ server {
server_name s3.zhaoxueqing.top;
location / {
proxy_pass http://192.168.1.100:9090;
proxy_redirect off;#以下是一些反向代理的配置可删除
proxy_pass_header Set-Cookie; # cookie
proxy_set_header Host $host; # 主机名
proxy_set_header X-Real-Ip $remote_addr;# 真实 IP
proxy_set_header X-Forwarded-For $remote_addr; # 表示 HTTP 请求端真实 IP
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-NginX-Proxy true;
# This is necessary to pass the correct IP to be hashed
real_ip_header X-Real-IP;
proxy_connect_timeout 300;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
chunked_transfer_encoding off;
}
}