Homeassistant使用Nginx代理之后出现400 BadRequest
使用Nginx反向代理HomeAssistant 8123端口之后访问出现400错误,实际上此时流量已到达Ha侧,但是被Ha的可信代理Ip拒绝连接(ha 日志中:A request from a reverse proxy was received from xxxx, but your HTTP integration is not set-up for reverse proxies
)
解决: 在Homeassistant中修改相应的配置文件configuration.yaml
1 | # 增加信任ip |
之后再开发者工具中检查配置 -> 重启Homeassistant即可