Hi
Just started with Home Assistant and have an unpleasant problem with revers proxy.
The main goal in what i want access HA outside my network via domain url
I have DIY home server. Every service in docker container
So when i add HA container i add nginx host with subdomain in nginx-proxy container. Both containers in same network
In configuration.yaml:
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1 #localhost
- 172.21.0.1 #docker_net gw
- 172.21.0.11 #nginx-proxy hardcoded ip
- 31.202.xxx.xxx #my external ip
ip_ban_enabled: False
login_attempts_threshold: 5
Have access to main page but can’t login with message
2020-07-31 16:19:35 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 31.202.xxx.xxx
In ./config/.storage/auth have
"access_token_expiration": 1800.0,
"client_icon": null,
"client_id": "https://home.xxxxx.tk/",
"client_name": null,
"created_at": "2020-07-31T13:19:45.810914+00:00",
"id": "7da899ddb8b744beba5bd9dfbdbde79e",
"jwt_key": "6792fd8c25ef54af330a14dd7655a9d8b517ce36d7223340721c5e839ccb491a8e6f6a0145b0b653a19a3eb1e58a68f55c3662dexxxxxxxxxxxxx",
"last_used_at": "2020-07-31T13:19:45.811048+00:00",
"last_used_ip": "31.202.xxx.xxx",
"token": "24aa12671c27a25e2270b982a3c50d86e39a10ee47f7cff6b21620899750952860b9225ef4d792a2a363fa1dc7c2d511a450ad451c6xxxxxxxxx",
"token_type": "normal",
"user_id": "97aeb489b50046ef8ae546axxxxx"