Https://192.168.1.x:8123與Https://xxx.duckdns.org可以訪問HA
但Http://192.168.1.x:8123卻不行
因為手機的APP內網需要用Http才可以訪問,但因為http會無法登入
最終還是想實現內網走http,外網走https
配置:
使用Generic x86-64安裝HA,使用duckdns作為外部訪問
有找了許多資料,需要使用Nginx Proxy Manager和NGINX Home Assistant SSL proxy但都沒辦法實現
以下為配置狀況
1. Nginx Proxy Manager




2. Configuration.yaml
http:
ip_ban_enabled: true
login_attempts_threshold: 5
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
ssl_certificate: /ssl/fullchain.pem
ssl_key: /ssl/privkey.pem