如何修复 Homeassistant 登录时 403: forbidden
当 Homeassistant 显示 403: forbidden 而不是登录提示时,最可能的原因是你的用户由于太多失败的登录尝试而被禁止。
编辑 configuration.yaml 并设置
configuration.yaml
login_attempts_threshold: 100从默认的 5,这应该解除你的禁止。你可能还需要配置 trusted_proxies 以包含反向代理服务器的 IP(通常运行在 127.0.0.1)。如果那不起作用,完全禁用 IP 禁止。这是一个有效的完整 configuration.yml http 部分:
configuration.yaml
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
ip_ban_enabled: false
login_attempts_threshold: 500Check out similar posts by category:
Home-Assistant
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow