Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

External network access impossible for HA docker : Login attempt or request with invalid authentication from 93.22.XXX.XXX

$
0
0

@quentino18 wrote:

Hello !

I just installed Home assistant in a docker.
Everything works perfectly with my internal network, but I still can’t access it through external network.

I host a few websites, so i put a proxy to redirect http port (for now) to the docker (80 to 8123) when coming from a specific domain : http://home.XXXXX.fr

Here my apache virtual host conf:

<VirtualHost *:80>
  ProxyPreserveHost On
  ProxyRequests Off
  ServerName www.home.XXXXX.fr
  ServerAlias XXXXX.fr
  ProxyPass / http://127.0.0.1:8123/
  ProxyPassReverse / http://127.0.0.1:8123/
</VirtualHost>

Here a part of my configuration.yaml :

http:
   base_url: http://www.home.XXXXX.fr
   use_x_forwarded_for: true
   trusted_proxies
      -  127.0.0.1

There is no error in the logs when I run home assistant.

When I try to authenticate with my username and password through external network :
image

Following line is appearing in logs when i click on “Retry” :

2019-12-11 20:26:44 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 93.22.XXX.XXX

When i go on my profile with an internal network, I can see for each try :

Actualiser le jeton de http://www.home.XXXXX.fr/
Créé le 11 décembre 2019 à 20:26
Dernière utilisation le 11 décembre 2019 à 20:26 à partir de 93.22.XXX.XXX

I also tried with the android app with the exact same result.

I tried to add the following to http: without any change except there is no log when i try to authenticate:

  cors_allowed_origins:
     - http://www.home.XXXXX.fr

Have I done something wrong in the config ?
Is there something I can try ?

Thank you for your answers !

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>