nginx,conf changed.
This commit is contained in:
@@ -5,6 +5,9 @@ events {
|
||||
}
|
||||
|
||||
http {
|
||||
# 配置允许传递真实 IP 的代理
|
||||
set_real_ip_from 0.0.0.0/0; # 信任所有来源 # 这里填写你的代理或负载均衡器的 IP 地址范围
|
||||
real_ip_header X-Forwarded-For; # 设置 Nginx 使用 X-Forwarded-For 头来获取真实 IP
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
Reference in New Issue
Block a user