当在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
重启应用大功告成
评论区