haos frp等穿透 外网不能访问解决办法
2024-05-15
How to fix Home-Assistant A request from a reverse proxy was received from 127.0.0.1, but your HTTP integration is not set-up for reverse proxies
在配置文件config/configuration.yaml的 default_config:下添加如下内容
记得要保存配置文件后要 重启,重新加载配置好像不起作用
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1(此处地址是日志中报错的代理地址,如果代理不在本机,就是代理的ip 如192.168.31.250)
ip_ban_enabled: true
login_attempts_threshold: 5
Complete configuration.yml example:
# Configure a default setup of Home Assistant (frontend, api, etc)
de
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
ip_ban_enabled: true
login_attempts_threshold: 5
# Text to speech
tts:
- platform: google_translate
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
Now restart home-assistant and your reverse proxy should work fine.
发表评论: