我搬磚!很多人一直重複問,如果有人是用NGINX Home Assistant SSL proxy進行連外網,一開始可以用升級版本後不行的話,可以試看看下面的方法(我群組搬過來,如覺得不妥我可刪)
PS 我一開始還沒人教時,我是去看設定>紀錄(日誌)裡有顯示錯誤,大概意思是IP:XXXX嘗試登入失敗,我將這裡的IP打在 trusted_proxies後就解決了,可以參考
=================================
HA升2021.7.0後出現 A request from a reverse proxy was received from 192.168.XX.XX, but your HTTP integration is not set-up for reverse proxies; This request will be blocked in Home Assistant 2021.7 unless you configure your HTTP integration to allow this header
網頁登入不了HA的同學們
可以在configuration.yaml 裡加入這段解決
=================================
http:
use_x_forwarded_for: true
trusted_proxies:
- 192.168.1.0/24
ip_ban_enabled: true
login_attempts_threshold: 5
====================================
比如你HA是192.168.1.100 就是寫192.168.1.0/24 這網段就OK了