custom-components / authenticated

A platform which allows you to get information about sucessfull logins to Home Assistant.
MIT License
82 stars 28 forks source link

Work through reverse proxy #49

Closed jimmyeao closed 4 years ago

jimmyeao commented 4 years ago

Describe the solution you'd like

Correct reporting of IP addresses when using a reverse proxy. Currently, only the reverse proxy IP is listed.

ludeeus commented 4 years ago

If that is the case you have wrongly configured Home Assistant. This integration used the IP that HA see.

jimmyeao commented 4 years ago

HASS is fine. It is exposed to the internet through a reverse proxy (NGINX) as are other internal hosts.

DavidFW1960 commented 4 years ago

@jimmyeao see the note for configuring http in home assistant - if you don't set a trusted proxy and set x_forwarded_for to true then every IP address reported to HA will be the address of the proxy....

jimmyeao commented 4 years ago

I’ll double check, thanks :)

Jimmy White


From: DavidFW1960 notifications@github.com Sent: Thursday, September 19, 2019 1:24:08 AM To: custom-components/authenticated authenticated@noreply.github.com Cc: Jimmy White jimmy@deviousweb.com; Mention mention@noreply.github.com Subject: Re: [custom-components/authenticated] Work through reverse proxy (#49)

@jimmyeaohttps://github.com/jimmyeao see the note for configuring http in home assistant - if you don't set a trusted proxy and set x_forwarded_for to true then every IP address reported to HA will be the address of the proxy....

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/custom-components/authenticated/issues/49?email_source=notifications&email_token=ABHVABZGDXGTLFTAQIRNHOLQKLBCRA5CNFSM4IYAXFIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7B2LUI#issuecomment-532915665, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABHVAB2L7IZOE2L4MMDUT6TQKLBCRANCNFSM4IYAXFIA.