I have a failed login in homeassistant notifications, I know that was me when I was out and using my smartphone on a 4g network.
However, it says the request came from 127.0.0.1, which isn’t the case but since I use a reverse proxy config with nginx I can see what happened there.
Is there a way to config nginx/hass to take the ip for which the request was forwarded for?
You need to make sure the proxy is passing through ‘header_upstream X-Forwarded-For’
and HA has the following in the config,
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
1 Like
Yes, that works!
Thx