You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #6833 on October 12, 2024 06:56.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
系统信息
使用的哪种方式运行?
Docker Compose
发生了什么?
使用雷池WAF反代8090端口无法正确显示登录设备ip
雷池反代openresty,再由openresty反代8090就可以正常显示设备ip
参考雷池文档在openresty配置文件添加了
real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;
这两条参数可以正常显示登录设备ip
能否让halo不经过openresty也可以正常显示设备ip而不是unknown
复现步骤
No response
相关日志输出
No response
附加信息
这是我的openresty配置文件
server {
listen 80 ;
server_name test.local;
index index.php index.html index.htm default.php default.htm default.html;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
access_log /www/sites/doc.iovoi.co/log/access.log main;
error_log /www/sites/doc.iovoi.co/log/error.log;
location ^~ /.well-known/acme-challenge {
allow all;
root /usr/share/nginx/html;
}
location / {
proxy_pass http://127.0.0.1:8090;
}
}
参考文档https://docs.waf-ce.chaitin.cn/%E6%9B%B4%E5%A4%9A%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3/IP-%E5%9C%B0%E5%9D%80
Beta Was this translation helpful? Give feedback.
All reactions