更新: 哪吒管理面板中显示的 IP 和 Agent 实际 IP 不一致
🆕 更新方案2 自建 IP 查询接口并配置 Agent
👨🏻💻方案2: 自建接口直连
Nginx 为例:
location /ip {
return 200 'ip=$remote_addr';
add_header Content-Type text/plain;
}
Agent 配置( /opt/nezha/agent/config.yml ):
custom_ip_api:
- 'https://a.com/ip'
- 'https://b.com/ip'
原消息
🆕 更新方案2 自建 IP 查询接口并配置 Agent
👨🏻💻方案2: 自建接口直连
Nginx 为例:
location /ip {
return 200 'ip=$remote_addr';
add_header Content-Type text/plain;
}
Agent 配置( /opt/nezha/agent/config.yml ):
custom_ip_api:
- 'https://a.com/ip'
- 'https://b.com/ip'
原消息