使用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

# 增加信任ip
http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.0.4  #可信ip 多个

之后再开发者工具中检查配置 -> 重启Homeassistant即可