251
0
1
如何修复 Home-Assistant 从 127.0.0.1 收到来自反向代理的请求,但您的 HTTP 集成未针对反向代理进行设置

文章摘要
|
当在1lpanel安装完home-assistant之后,配置完方向代理进入主页时候报:
(MainThread) [homeassistant.components.http.forwarded] A request from a reve
解决方法
进入安装目录找到config/configuration.yaml
添加一下配置
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
ip_ban_enabled: true
login_attempts_threshold: 5配置完之后的文件示例
# Loads default set of integrations. Do not remove.
default_config:
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
ip_ban_enabled: true
login_attempts_threshold: 5
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
重启应用大功告成

