Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP integration is not set-up for reverse proxies #9

Open
gatonero opened this issue Feb 9, 2023 · 6 comments
Open

HTTP integration is not set-up for reverse proxies #9

gatonero opened this issue Feb 9, 2023 · 6 comments

Comments

@gatonero
Copy link

gatonero commented Feb 9, 2023

Vielen Dank für diese Anleitung!

Bei dem ersten Aufruf von http://localhost erhalte ich "400: Bad Request" und finde in den Logs folgenden Eintrag:

`Running as 1000:1000

Initializing venv in /var/tmp/venv

Starting homeassistant

2023-02-09 12:36:57.382 ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 172.26.0.2, but your HTTP integration is not set-up for reverse proxies`

In meinem LAN befindet sich ein reverse proxy. Aber der sollte bei einem Zugriff auf localhost doch keine Rolle spielen?

@artmg
Copy link
Owner

artmg commented Feb 10, 2023

Hi @gatonero

this is not about a regular proxy device that you'd use in your LAN to protect your access the internet. A 'reverse-proxy' means a service 'inside a server' that takes incoming HTTP requests and does some filtering, before handing them to another service that actually handles those HTTP requests.

-- PC or handi --            -------    Home Assistant Docker   ------        
     Browser                  Apache daemon           Home Assistant
  HTTP request      ---->    Add HTTPS certs  --->  Serve HTTP content

so from you Browser client, on a different device, you don't but localhost but you need to put the hostname or address of the device running Home Assistant Docker
e.g. http://mydockerdevice/ or http://192.168.1.56/

Other than that, it is quite possible that your Home Assistant settings for http integration have some missing settings. Home Assistant has moved on lots since the version I last tested with this, and you may need some additional 'configuration.yaml' style settings. See the example in https://community.home-assistant.io/t/http-integration-is-not-set-up-for-reverse-proxies/313284/5 (although this uses a plugin that you may not have).

Guten glück

@gatonero
Copy link
Author

Thanks a lot. I will continue to fiddle around and take your steps as a template.

@artmg
Copy link
Owner

artmg commented Feb 10, 2023

Sure, @gatonero , you can fork the project then change what you need in your own fork and keep only the useful bits from here. Enjoy!

@artmg
Copy link
Owner

artmg commented Mar 22, 2023

Hi again @gatonero I have uploaded commit 65a1ab4 which should deal with this issue. It may be a little late for you, but it's there for others. Thanks for warning about this.

@gatonero
Copy link
Author

Thank you! 🙂

@heysarver
Copy link

@artmg Thanks, your commit worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants