Contact Information
No response
1Panel Version
2.2.4
Problem Description
使用cloudflare代理以后 加上上面那个配置 网站监控里能拿到真实IP了
但是cf直接报错 520 导致网站无法访问 网站监控显示报错是444
需要在OpenResty中加
set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;
去掉上面那两行配置 不报错520 但是获取不到真实IP 导致WAF地区拦截
Steps to Reproduce
1
The expected correct result
No response
Related log output
Additional Information
No response
Contact Information
No response
1Panel Version
2.2.4
Problem Description
使用cloudflare代理以后 加上上面那个配置 网站监控里能拿到真实IP了
但是cf直接报错 520 导致网站无法访问 网站监控显示报错是444
需要在OpenResty中加
set_real_ip_from 0.0.0.0/0;
real_ip_header X-Forwarded-For;
去掉上面那两行配置 不报错520 但是获取不到真实IP 导致WAF地区拦截
Steps to Reproduce
1
The expected correct result
No response
Related log output
Additional Information
No response