[SOLVED] Invalid authentication with Nginx Proxy Manager

Hi all, I know this topic has been covered many times, unfortunately I can’t manage to route from a nginx proxy manager docker container to my Home Assistant instance. Everything works so far except for the login. I enter my correct credentials, but it immediately aborts the login.

I have included all IP addresses that are routed through the network. What else could I try?

NPM is running in a docker container on Host 192.168.1.100
Home Assistant is a VM with the IP address 192.168.1.102

HA config

homeassistant:
  name: Zuhause
  unit_system: metric
  time_zone: Europe/Berlin
  external_url: "https://smarthome.domain.de"
  internal_url: "http://192.168.1.102:8123"
  
default_config:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.1.0/24
    - 172.18.0.0/24
    - 127.0.0.1
    - ::1
    - 2001::/64
    - fe00::/64
    - fd00::/64
#  ip_ban_enabled: true
#  login_attempts_threshold: 5

Error log in HA

Logger: homeassistant.components.http.ban
Source: components/http/ban.py:124
Integration: HTTP (documentation, issues)
First occurred: 10:40:28 (1 occurrences)
Last logged: 10:40:28

Login attempt or request with invalid authentication from xxx.versanet.de (MY PUBLIC IP ADDRESS). (Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0)

image

May sound stupid, but you need to grand access to the user external as well. You can check user config so to have this toggle off -

I’m running the same configuration. Within Nginx Proxy Manager, edit your proxy host, and add a custom location:

1 Like

Thank you very much, it’s working now! This was the missing part! :slight_smile: