Docker + Reverse Proxy "Unable to connect to Homeassistant"

Hello guys. I had a post up to try and solve my problem. I will qoute this first if it helps.

Hey guys I know you want to redirect me to [http-homassistant help] but I tried and I think I miss something. Hope you can help me. If I do not give every fact needed for solving pls say what it is and maybe where to find it.

System and Software:

Homeassistant in Docker (image)

Nginx Proxy Manager (NPM) (image)

My configuration.yaml without any changes:

# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

Edited to fit the help-page:

# Loads default set of integrations. Do not remove.
default_config:
# Text to speech
tts:
- platform: google_translate
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

http:
use_x_forwarded_for: true
trusted_proxies:
- [IP of Proxyserver in Docker]
- [also tried IP of Proxy in Docker as range (IP/24)]
- [also tried Domain]

Edited to fit forum comments

Same as above but with a DOMAIN modifier which did not work either.

In every case it got into restricted mode or showed “This computer is not allowed” one time.

I did a reboot between all changes and my pattern of access is:

Home network: http://[IP]:8123
Outside of home network: https://[DOMAIN]

Further information:
on NPM:
Force SSL and HSTS are enabled

Hope you can help me thanks a lot

Now I am stuck with the "Unable to connect to Home Assistant. Retrying in [XX] seconds… " screen. I modified my config and now i looks like this:


# Loads default set of integrations. Do not remove.
default_config:

# Text to speech
tts:
  - platform: google_translate

homeassistant:
  auth_providers:
    - type: homeassistant
    - type: trusted_networks
      trusted_networks:
        - 192.168.0.0/16
        - 172.22.0.0/16
        - 127.0.0.1
        - ::1
  # URL
  external_url: [MY_DOMAIN]
  internal_url: [MY_IP:PORT]

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.0.0/16
    - 172.22.0.2
    - 127.0.0.1
    - ::1

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

This is the full configuration.yaml

Every time I want to log in it states wrong login credentials in log like this:

Logger: homeassistant.components.http.ban
Source: components/http/ban.py:82
Integration: HTTP (documentation, issues)
First occurred: 18:15:18 (13 occurrences)
Last logged: 21:28:15

Login attempt or request with invalid authentication from [MY_WAN]. Requested URL: '/auth/token'. (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0)

Despite my entering the right credentials.

I really hope i can get it running with your help.
Thanks to every reply in advance